[08/31] net/bnxt: add support for VF id 0xd800
Checks
Commit Message
Add support for StingRay VF device 0xd800
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_ethdev.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Comments
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.khaparde@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;
> }
>
On Tue, Jun 26, 2018 at 8:28 AM, Ferruh Yigit <ferruh.yigit@intel.com>
wrote:
> 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
>
I think we don't need it. We are just adding another VF device id.
The actual device family is already listed in the document.
@@ -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;
}