From 9e308f121ce34989515c2bc0df59e984bd104665 Mon Sep 17 00:00:00 2001 From: hongrongxuan Date: Wed, 29 May 2024 00:07:36 -0400 Subject: [PATCH] drivers/thirdparty: ice: extend ringparam setting/getting API with rx_buf_len Fixes:(fad4e75f22ff driver/thirdparty: extend ringparam setting/getting API with rx_buf_len) Signed-off-by: hongrongxuan --- drivers/thirdparty/ice/ice_ethtool.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/thirdparty/ice/ice_ethtool.c b/drivers/thirdparty/ice/ice_ethtool.c index 926270f3a07d..a69228ea44cd 100644 --- a/drivers/thirdparty/ice/ice_ethtool.c +++ b/drivers/thirdparty/ice/ice_ethtool.c @@ -4390,7 +4390,10 @@ ice_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd, } static void -ice_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) +ice_get_ringparam(struct net_device *netdev, + struct ethtool_ringparam *ring, + struct kernel_ethtool_ringparam *kernel_ring, + struct netlink_ext_ack *extack) { struct ice_netdev_priv *np = netdev_priv(netdev); struct ice_vsi *vsi = np->vsi; @@ -4408,7 +4411,10 @@ ice_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) } static int -ice_set_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) +ice_set_ringparam(struct net_device *netdev, + struct ethtool_ringparam *ring, + struct kernel_ethtool_ringparam *kernel_ring, + struct netlink_ext_ack *extack) { struct ice_ring *tx_rings = NULL, *rx_rings = NULL; struct ice_netdev_priv *np = netdev_priv(netdev);