Skip to content

Commit 2e66835

Browse files
committed
net: ethtool: populate the default HDS params in the core (bnxt)
JIRA: https://issues.redhat.com/browse/RHEL-107291 Conflicts: The core parts were already backport as a part of ethtool subsystem update (commit 4448385). Add the missing bnxt part. commit 928459b Author: Jakub Kicinski <[email protected]> Date: Sat Jan 18 18:05:15 2025 -0800 net: ethtool: populate the default HDS params in the core The core has the current HDS config, it can pre-populate the values for the drivers. While at it, remove the zero-setting in netdevsim. Zero are the default values since the config is zalloc'ed. Reviewed-by: Michael Chan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Michal Schmidt <[email protected]>
1 parent 7749842 commit 2e66835

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ static void bnxt_get_ringparam(struct net_device *dev,
835835
ering->rx_jumbo_pending = bp->rx_agg_ring_size;
836836
ering->tx_pending = bp->tx_ring_size;
837837

838-
kernel_ering->hds_thresh = dev->cfg->hds_thresh;
839838
kernel_ering->hds_thresh_max = BNXT_HDS_THRESHOLD_MAX;
840839
}
841840

0 commit comments

Comments
 (0)