Skip to content

Commit b8e0d88

Browse files
Yaniv Rosnerdavem330
authored andcommitted
bnx2x: Fix 20G KR2 support claims
Don't claim 20G is supported if the speed is unsupported by the phys (reflected by various ethtools and ndos). Signed-off-by: Yaniv Rosner <[email protected]> Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 03c22ea commit b8e0d88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10558,6 +10558,10 @@ static void bnx2x_link_settings_supported(struct bnx2x *bp, u32 switch_cfg)
1055810558
if (!(bp->link_params.speed_cap_mask[idx] &
1055910559
PORT_HW_CFG_SPEED_CAPABILITY_D0_10G))
1056010560
bp->port.supported[idx] &= ~SUPPORTED_10000baseT_Full;
10561+
10562+
if (!(bp->link_params.speed_cap_mask[idx] &
10563+
PORT_HW_CFG_SPEED_CAPABILITY_D0_20G))
10564+
bp->port.supported[idx] &= ~SUPPORTED_20000baseKR2_Full;
1056110565
}
1056210566

1056310567
BNX2X_DEV_INFO("supported 0x%x 0x%x\n", bp->port.supported[0],

0 commit comments

Comments
 (0)