drivers/thirdparty: ice: extend ringparam setting/getting API with rx_buf_len

Fixes:(fad4e75f22 driver/thirdparty: extend ringparam setting/getting API with rx_buf_len)
Signed-off-by: hongrongxuan <hongrongxuan@huawei.com>
This commit is contained in:
hongrongxuan 2024-05-29 00:07:36 -04:00 committed by Jianping Liu
parent 37c90c42eb
commit 9e308f121c
1 changed files with 8 additions and 2 deletions

View File

@ -4390,7 +4390,10 @@ ice_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd,
} }
static void 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_netdev_priv *np = netdev_priv(netdev);
struct ice_vsi *vsi = np->vsi; struct ice_vsi *vsi = np->vsi;
@ -4408,7 +4411,10 @@ ice_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring)
} }
static int 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_ring *tx_rings = NULL, *rx_rings = NULL;
struct ice_netdev_priv *np = netdev_priv(netdev); struct ice_netdev_priv *np = netdev_priv(netdev);