Skip to content

Commit 2093735

Browse files
committed
Merge branch 'bnxt_en-3-bug-fixes'
Michael Chan says: ==================== bnxt_en: 3 Bug fixes This series contains 3 small bug fixes covering ethtool self test, PCI ID string typos, and some missing 200G link speed ethtool reporting logic. ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents c5cff16 + 581bce7 commit 2093735

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ static const struct pci_device_id bnxt_pci_tbl[] = {
175175
{ PCI_VDEVICE(BROADCOM, 0x1750), .driver_data = BCM57508 },
176176
{ PCI_VDEVICE(BROADCOM, 0x1751), .driver_data = BCM57504 },
177177
{ PCI_VDEVICE(BROADCOM, 0x1752), .driver_data = BCM57502 },
178-
{ PCI_VDEVICE(BROADCOM, 0x1800), .driver_data = BCM57508_NPAR },
178+
{ PCI_VDEVICE(BROADCOM, 0x1800), .driver_data = BCM57502_NPAR },
179179
{ PCI_VDEVICE(BROADCOM, 0x1801), .driver_data = BCM57504_NPAR },
180-
{ PCI_VDEVICE(BROADCOM, 0x1802), .driver_data = BCM57502_NPAR },
181-
{ PCI_VDEVICE(BROADCOM, 0x1803), .driver_data = BCM57508_NPAR },
180+
{ PCI_VDEVICE(BROADCOM, 0x1802), .driver_data = BCM57508_NPAR },
181+
{ PCI_VDEVICE(BROADCOM, 0x1803), .driver_data = BCM57502_NPAR },
182182
{ PCI_VDEVICE(BROADCOM, 0x1804), .driver_data = BCM57504_NPAR },
183-
{ PCI_VDEVICE(BROADCOM, 0x1805), .driver_data = BCM57502_NPAR },
183+
{ PCI_VDEVICE(BROADCOM, 0x1805), .driver_data = BCM57508_NPAR },
184184
{ PCI_VDEVICE(BROADCOM, 0xd802), .driver_data = BCM58802 },
185185
{ PCI_VDEVICE(BROADCOM, 0xd804), .driver_data = BCM58804 },
186186
#ifdef CONFIG_BNXT_SRIOV

drivers/net/ethernet/broadcom/bnxt/bnxt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ struct bnxt_link_info {
12261226
#define BNXT_LINK_SPEED_40GB PORT_PHY_QCFG_RESP_LINK_SPEED_40GB
12271227
#define BNXT_LINK_SPEED_50GB PORT_PHY_QCFG_RESP_LINK_SPEED_50GB
12281228
#define BNXT_LINK_SPEED_100GB PORT_PHY_QCFG_RESP_LINK_SPEED_100GB
1229+
#define BNXT_LINK_SPEED_200GB PORT_PHY_QCFG_RESP_LINK_SPEED_200GB
12291230
u16 support_speeds;
12301231
u16 support_pam4_speeds;
12311232
u16 auto_link_speeds; /* fw adv setting */

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,8 @@ u32 bnxt_fw_to_ethtool_speed(u16 fw_link_speed)
17141714
return SPEED_50000;
17151715
case BNXT_LINK_SPEED_100GB:
17161716
return SPEED_100000;
1717+
case BNXT_LINK_SPEED_200GB:
1718+
return SPEED_200000;
17171719
default:
17181720
return SPEED_UNKNOWN;
17191721
}
@@ -3738,6 +3740,7 @@ static void bnxt_self_test(struct net_device *dev, struct ethtool_test *etest,
37383740
bnxt_ulp_stop(bp);
37393741
rc = bnxt_close_nic(bp, true, false);
37403742
if (rc) {
3743+
etest->flags |= ETH_TEST_FL_FAILED;
37413744
bnxt_ulp_start(bp, rc);
37423745
return;
37433746
}

0 commit comments

Comments
 (0)