From: Srisivasubramanian S Date: Tue, 24 Oct 2017 04:42:50 +0000 (+0530) Subject: net/liquidio: add support for 10GBase-T cards X-Git-Tag: spdx-start~1033 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1a2ba426a62ef143c8d91c1ffbabc42749f9ddb5;p=dpdk.git net/liquidio: add support for 10GBase-T cards Signed-off-by: Srisivasubramanian S Signed-off-by: Shijith Thotton --- diff --git a/doc/guides/nics/liquidio.rst b/doc/guides/nics/liquidio.rst index 4ccde0c3d2..7bc1604005 100644 --- a/doc/guides/nics/liquidio.rst +++ b/doc/guides/nics/liquidio.rst @@ -42,7 +42,9 @@ Supported LiquidIO Adapters ----------------------------- - LiquidIO II CN2350 210SV/225SV +- LiquidIO II CN2350 210SVPT - LiquidIO II CN2360 210SV/225SV +- LiquidIO II CN2360 210SVPT Pre-Installation Configuration diff --git a/drivers/net/liquidio/base/lio_hw_defs.h b/drivers/net/liquidio/base/lio_hw_defs.h index c7f97f2590..d4cd23ce83 100644 --- a/drivers/net/liquidio/base/lio_hw_defs.h +++ b/drivers/net/liquidio/base/lio_hw_defs.h @@ -43,10 +43,14 @@ #define LIO_CN23XX_VF_VID 0x9712 /* CN23xx subsystem device ids */ -#define PCI_SUBSYS_DEV_ID_CN2350_210 0x0004 -#define PCI_SUBSYS_DEV_ID_CN2360_210 0x0005 -#define PCI_SUBSYS_DEV_ID_CN2360_225 0x0006 -#define PCI_SUBSYS_DEV_ID_CN2350_225 0x0007 +#define PCI_SUBSYS_DEV_ID_CN2350_210 0x0004 +#define PCI_SUBSYS_DEV_ID_CN2360_210 0x0005 +#define PCI_SUBSYS_DEV_ID_CN2360_225 0x0006 +#define PCI_SUBSYS_DEV_ID_CN2350_225 0x0007 +#define PCI_SUBSYS_DEV_ID_CN2350_210SVPN3 0x0008 +#define PCI_SUBSYS_DEV_ID_CN2360_210SVPN3 0x0009 +#define PCI_SUBSYS_DEV_ID_CN2350_210SVPT 0x000a +#define PCI_SUBSYS_DEV_ID_CN2360_210SVPT 0x000b /* --------------------------CONFIG VALUES------------------------ */ diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index 924eb26973..4b1896619a 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -405,6 +405,10 @@ lio_dev_info_get(struct rte_eth_dev *eth_dev, /* CN23xx 10G cards */ case PCI_SUBSYS_DEV_ID_CN2350_210: case PCI_SUBSYS_DEV_ID_CN2360_210: + case PCI_SUBSYS_DEV_ID_CN2350_210SVPN3: + case PCI_SUBSYS_DEV_ID_CN2360_210SVPN3: + case PCI_SUBSYS_DEV_ID_CN2350_210SVPT: + case PCI_SUBSYS_DEV_ID_CN2360_210SVPT: devinfo->speed_capa = ETH_LINK_SPEED_10G; break; /* CN23xx 25G cards */ @@ -413,8 +417,9 @@ lio_dev_info_get(struct rte_eth_dev *eth_dev, devinfo->speed_capa = ETH_LINK_SPEED_25G; break; default: + devinfo->speed_capa = ETH_LINK_SPEED_10G; lio_dev_err(lio_dev, - "Unknown CN23XX subsystem device id. Not setting speed capability.\n"); + "Unknown CN23XX subsystem device id. Setting 10G as default link speed.\n"); } devinfo->max_rx_queues = lio_dev->max_rx_queues;