Skip to content

Commit e58263e

Browse files
committed
eth: bnxt: apply hds_thrs settings correctly
Use the pending config for hds_thrs. Core will only update the "current" one after we return success. Without this change 2 reconfigs would be required for the setting to reach the device. Fixes: 6b43673 ("bnxt_en: add support for hds-thresh ethtool command") Reviewed-by: Michael Chan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 32ad1f7 commit e58263e

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6585,7 +6585,7 @@ static void bnxt_hwrm_update_rss_hash_cfg(struct bnxt *bp)
65856585

65866586
static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, struct bnxt_vnic_info *vnic)
65876587
{
6588-
u16 hds_thresh = (u16)bp->dev->cfg->hds_thresh;
6588+
u16 hds_thresh = (u16)bp->dev->cfg_pending->hds_thresh;
65896589
struct hwrm_vnic_plcmodes_cfg_input *req;
65906590
int rc;
65916591

0 commit comments

Comments
 (0)