On 6/19/2018 10:30 PM, Ajit Khaparde wrote: > Add support for StingRay VF device 0xd800
Can you please document new supported device on doc/guides/nics/bnxt.rst > Signed-off-by: Ajit Khaparde <ajit.khapa...@broadcom.com> > --- > drivers/net/bnxt/bnxt_ethdev.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c > index 1b52425e6..5d7f29cf4 100644 > --- a/drivers/net/bnxt/bnxt_ethdev.c > +++ b/drivers/net/bnxt/bnxt_ethdev.c > @@ -73,6 +73,7 @@ int bnxt_logtype_driver; > #define BROADCOM_DEV_ID_58802 0xd802 > #define BROADCOM_DEV_ID_58804 0xd804 > #define BROADCOM_DEV_ID_58808 0x16f0 > +#define BROADCOM_DEV_ID_58802_VF 0xd800 > > static const struct rte_pci_id bnxt_pci_id_map[] = { > { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, > @@ -116,6 +117,7 @@ static const struct rte_pci_id bnxt_pci_id_map[] = { > { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_58802) }, > { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_58804) }, > { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_58808) }, > + { RTE_PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_58802_VF) }, > { .vendor_id = 0, /* sentinel */ }, > }; > > @@ -3068,7 +3070,8 @@ static bool bnxt_vf_pciid(uint16_t id) > id == BROADCOM_DEV_ID_5741X_VF || > id == BROADCOM_DEV_ID_57414_VF || > id == BROADCOM_DEV_ID_STRATUS_NIC_VF1 || > - id == BROADCOM_DEV_ID_STRATUS_NIC_VF2) > + id == BROADCOM_DEV_ID_STRATUS_NIC_VF2 || > + id == BROADCOM_DEV_ID_58802_VF) > return true; > return false; > } >