Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sys/dev/bnxt: Enable NPAR support on BCM57504 #1306

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys/dev/bnxt/bnxt_en/bnxt.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
#define BCM58700 0x16cd
#define BCM57508 0x1750
#define BCM57504 0x1751
#define BCM57504_NPAR 0x1801
#define BCM57502 0x1752
#define NETXTREME_C_VF1 0x16cb
#define NETXTREME_C_VF2 0x16e1
Expand Down
4 changes: 4 additions & 0 deletions sys/dev/bnxt/bnxt_en/if_bnxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ static const pci_vendor_info_t bnxt_vendor_info_array[] =
"Broadcom BCM57508 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"),
PVID(BROADCOM_VENDOR_ID, BCM57504,
"Broadcom BCM57504 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"),
PVID(BROADCOM_VENDOR_ID, BCM57504_NPAR,
"Broadcom BCM57504 NetXtreme-E Ethernet Partition"),
PVID(BROADCOM_VENDOR_ID, BCM57502,
"Broadcom BCM57502 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"),
PVID(BROADCOM_VENDOR_ID, NETXTREME_C_VF1,
Expand Down Expand Up @@ -2087,6 +2089,7 @@ bnxt_attach_pre(if_ctx_t ctx)
case BCM57414_NPAR2:
case BCM57416_NPAR1:
case BCM57416_NPAR2:
case BCM57504_NPAR:
softc->flags |= BNXT_FLAG_NPAR;
break;
case NETXTREME_C_VF1:
Expand Down Expand Up @@ -2170,6 +2173,7 @@ bnxt_attach_pre(if_ctx_t ctx)

if ((softc->ver_info->chip_num == BCM57508) ||
(softc->ver_info->chip_num == BCM57504) ||
(softc->ver_info->chip_num == BCM57504_NPAR) ||
(softc->ver_info->chip_num == BCM57502))
softc->flags |= BNXT_FLAG_CHIP_P5;

Expand Down
Loading