Skip to contentSkip to conversation

bnxt: Add new device ids

PATCH Superseded Ajit Khaparde 2 participants 5 messages Apr 25, 2017 – Apr 26, 2017 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnxt: Add new device ids

Add support for new device ids.

---
 drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/bnxt/bnxt_ethdev.c +4 -0
index 5dc3ff0..7805221 100644
@@ -60,6 +60,8 @@ static const char bnxt_version[] =
 
 #define PCI_VENDOR_ID_BROADCOM 0x14E4
 
+#define BROADCOM_DEV_ID_STRATUS_NIC 0x1614
+#define BROADCOM_DEV_ID_57414_VF 0x16c1
 #define BROADCOM_DEV_ID_57301 0x16c8
 #define BROADCOM_DEV_ID_57302 0x16c9
 #define BROADCOM_DEV_ID_57304_PF 0x16ca
@@ -94,6 +96,8 @@ static const char bnxt_version[] =
 #define BROADCOM_DEV_ID_57416_MF 0x16ee
 
 static const struct rte_pci_id bnxt_pci_id_map[] = {
+	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_STRATUS_NIC) },
+	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57414_VF) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57301) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57302) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57304_PF) },
Signature · 1 line
2.10.1 (Apple Git-78)
#1 lore raw
Quoted 1 line · Ajit Khaparde

Add support for new device ids.

Hi Ajit,

Is NIC documentation (doc/guides/nics/bnxt.rst) needs to get updated for these new devices?

Also if http://dpdk.org/doc/nics needs update please send another web patch.

Thanks,
ferruh

Quoted 29 lines
---
 drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/bnxt/bnxt_ethdev.c +4 -0
index 5dc3ff0..7805221 100644
@@ -60,6 +60,8 @@ static const char bnxt_version[] =
 
 #define PCI_VENDOR_ID_BROADCOM 0x14E4
 
+#define BROADCOM_DEV_ID_STRATUS_NIC 0x1614
+#define BROADCOM_DEV_ID_57414_VF 0x16c1
 #define BROADCOM_DEV_ID_57301 0x16c8
 #define BROADCOM_DEV_ID_57302 0x16c9
 #define BROADCOM_DEV_ID_57304_PF 0x16ca
@@ -94,6 +96,8 @@ static const char bnxt_version[] =
 #define BROADCOM_DEV_ID_57416_MF 0x16ee
 
 static const struct rte_pci_id bnxt_pci_id_map[] = {
+	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_STRATUS_NIC) },
+	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57414_VF) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57301) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57302) },
 	{ RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57304_PF) },
#2 lore raw
Quoted 8 lines · Ferruh Yigit
Quoted 1 line · Ajit Khaparde

Add support for new device ids.

Hi Ajit,

Is NIC documentation (doc/guides/nics/bnxt.rst) needs to get updated for these new devices?

​Yes. It will need a small change. Do you want me to ​resend this patch along with that?
Otherwise I will just send the update to bnxt.rst

Thanks

Quoted 42 lines

Also if http://dpdk.org/doc/nics needs update please send another web patch.

Thanks,
ferruh

drivers/net/bnxt/bnxt_

Quoted 7 lines
---
 drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/bnxt/bnxt_ renamed from drivers/net/bnxt/bnxt_ethdev.c +0 -0

ethdev.c

Quoted 13 lines

index 5dc3ff0..7805221 100644

drivers/net/bnxt/bnxt_ethdev.c +2 -0
@@ -60,6 +60,8 @@ static const char bnxt_version[] =
 
 #define PCI_VENDOR_ID_BROADCOM 0x14E4
 
+#define BROADCOM_DEV_ID_STRATUS_NIC 0x1614
+#define BROADCOM_DEV_ID_57414_VF 0x16c1
 #define BROADCOM_DEV_ID_57301 0x16c8
 #define BROADCOM_DEV_ID_57302 0x16c9
 #define BROADCOM_DEV_ID_57304_PF 0x16ca

drivers/net/bnxt/bnxt_ethdev.c static const char bnxt_version[] = · line 99

Quoted 4 lines
drivers/net/bnxt/bnxt_ethdev.c +1 -0
@@ -94,6 +96,8 @@ static const char bnxt_version[] =
 #define BROADCOM_DEV_ID_57416_MF 0x16ee
 
 static const struct rte_pci_id bnxt_pci_id_map[] = {
+     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,

BROADCOM_DEV_ID_STRATUS_NIC) },

drivers/net/bnxt/bnxt_ethdev.c static const char bnxt_version[] = · line 100

Quoted 1 line
drivers/net/bnxt/bnxt_ethdev.c +1 -0
+     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,

BROADCOM_DEV_ID_57414_VF) },

drivers/net/bnxt/bnxt_ethdev.c static const char bnxt_version[] =

Quoted 3 lines
drivers/net/bnxt/bnxt_ethdev.c +0 -0
      { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57301) },
      { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57302) },
      { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,

BROADCOM_DEV_ID_57304_PF) },

Quoted 1 line
#3 lore raw
Quoted 7 lines · Ajit Khaparde

On Wed, Apr 26, 2017 at 3:52 AM, Ferruh Yigit <[email protected] <mailto:[email protected]>> wrote:

On 4/25/2017 10:53 PM, Ajit Khaparde wrote:
> Add support for new device ids.

Quoted 8 lines

Hi Ajit,

Is NIC documentation (doc/guides/nics/bnxt.rst) needs to get updated for these new devices?

​Yes. It will need a small change. Do you want me to ​resend this patch along with that?
Otherwise I will just send the update to bnxt.rst

Please resend this patch to have document update.

Is a separate web patch also required?

Quoted 48 lines

Thanks

    Also if http://dpdk.org/doc/nics needs update please send another
    web patch.

    Thanks,
    ferruh

    >
    > Signed-off-by: Ajit Khaparde <[email protected]
    <mailto:[email protected]>>
    > ---
    >  drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
    >  1 file changed, 4 insertions(+)
    >
    > diff --git a/drivers/net/bnxt/bnxt_ethdev.c
    b/drivers/net/bnxt/bnxt_ethdev.c
    > index 5dc3ff0..7805221 100644
    > --- a/drivers/net/bnxt/bnxt_ethdev.c
    > +++ b/drivers/net/bnxt/bnxt_ethdev.c
    > @@ -60,6 +60,8 @@ static const char bnxt_version[] =
    >
    >  #define PCI_VENDOR_ID_BROADCOM 0x14E4
    >
    > +#define BROADCOM_DEV_ID_STRATUS_NIC 0x1614
    > +#define BROADCOM_DEV_ID_57414_VF 0x16c1
    >  #define BROADCOM_DEV_ID_57301 0x16c8
    >  #define BROADCOM_DEV_ID_57302 0x16c9
    >  #define BROADCOM_DEV_ID_57304_PF 0x16ca
    > @@ -94,6 +96,8 @@ static const char bnxt_version[] =
    >  #define BROADCOM_DEV_ID_57416_MF 0x16ee
    >
    >  static const struct rte_pci_id bnxt_pci_id_map[] = {
    > +     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_STRATUS_NIC) },
    > +     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57414_VF) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57301) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57302) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57304_PF) },
    >
#4 lore raw
Quoted 14 lines · Ferruh Yigit
Quoted 10 lines · Ajit Khaparde

On Wed, Apr 26, 2017 at 3:52 AM, Ferruh Yigit <[email protected] <mailto:[email protected]>> wrote:

On 4/25/2017 10:53 PM, Ajit Khaparde wrote:
> Add support for new device ids.

Hi Ajit,

Is NIC documentation (doc/guides/nics/bnxt.rst) needs to get updated

for

Quoted 2 lines

these new devices?

Quoted 8 lines
Quoted 3 lines

​Yes. It will need a small change. Do you want me to ​resend this patch along with that?
Otherwise I will just send the update to bnxt.rst

Please resend this patch to have document update.

Is a separate web patch also required?

​No Ferruh. It is not required.
​

Quoted 51 lines
Quoted 49 lines

Thanks

    Also if http://dpdk.org/doc/nics needs update please send another
    web patch.

    Thanks,
    ferruh

    >
    > Signed-off-by: Ajit Khaparde <[email protected]
    <mailto:[email protected]>>
    > ---
    >  drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
    >  1 file changed, 4 insertions(+)
    >
    > diff --git a/drivers/net/bnxt/bnxt_ethdev.c
    b/drivers/net/bnxt/bnxt_ethdev.c
    > index 5dc3ff0..7805221 100644
    > --- a/drivers/net/bnxt/bnxt_ethdev.c
    > +++ b/drivers/net/bnxt/bnxt_ethdev.c
    > @@ -60,6 +60,8 @@ static const char bnxt_version[] =
    >
    >  #define PCI_VENDOR_ID_BROADCOM 0x14E4
    >
    > +#define BROADCOM_DEV_ID_STRATUS_NIC 0x1614
    > +#define BROADCOM_DEV_ID_57414_VF 0x16c1
    >  #define BROADCOM_DEV_ID_57301 0x16c8
    >  #define BROADCOM_DEV_ID_57302 0x16c9
    >  #define BROADCOM_DEV_ID_57304_PF 0x16ca
    > @@ -94,6 +96,8 @@ static const char bnxt_version[] =
    >  #define BROADCOM_DEV_ID_57416_MF 0x16ee
    >
    >  static const struct rte_pci_id bnxt_pci_id_map[] = {
    > +     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_STRATUS_NIC) },
    > +     { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57414_VF) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57301) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57302) },
    >       { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM,
    BROADCOM_DEV_ID_57304_PF) },
    >