aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-07-21 05:22:59 -0700
committerJohn Lo <loj@cisco.com>2016-07-21 20:53:40 +0000
commit80d7f4b2bc543774b2c9232afca119d4a860c11e (patch)
tree86e60d71d362cc9edcb671eb00ed8634c39beda4 /vnet
parent93a46917275e41b457b794e40a1f906ec3123d5d (diff)
Add support for Chelsio T540-CR and T580-CR
Change-Id: Ibe927027c2aea6f2d85a9c50bf462c552b63861c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/dpdk/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c
index 5fe22b9276d..178ff31bea3 100644
--- a/vnet/vnet/devices/dpdk/init.c
+++ b/vnet/vnet/devices/dpdk/init.c
@@ -466,11 +466,17 @@ dpdk_lib_init (dpdk_main_t * dm)
case VNET_DPDK_PMD_CXGBE:
switch (dev_info.pci_dev->id.device_id) {
+ case 0x540d: /* T580-CR */
case 0x5410: /* T580-LP-cr */
xd->nb_rx_desc = DPDK_NB_RX_DESC_40GE;
xd->nb_tx_desc = DPDK_NB_TX_DESC_40GE;
xd->port_type = VNET_DPDK_PORT_TYPE_ETH_40G;
break;
+ case 0x5403: /* T540-CR */
+ xd->nb_rx_desc = DPDK_NB_RX_DESC_10GE;
+ xd->nb_tx_desc = DPDK_NB_TX_DESC_10GE;
+ xd->port_type = VNET_DPDK_PORT_TYPE_ETH_10G;
+ break;
default:
xd->nb_rx_desc = DPDK_NB_RX_DESC_10GE;
xd->nb_tx_desc = DPDK_NB_TX_DESC_10GE;