summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/init.c
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2017-12-11 17:29:57 -0600
committerDamjan Marion <dmarion.lists@gmail.com>2017-12-14 09:50:28 +0000
commit2f5eb0afa0893e94ed0115896d274de6f48cb93c (patch)
tree7a7f8eb93d7bdefcb8a5c631a71ecfe111b0f6ad /src/plugins/dpdk/device/init.c
parent5e52529adaa3a36402a2cc4f0f364060c5afc014 (diff)
Enable AWS ENA PMD
Elastic Network Adapter PMD for newer AWS instance types Change-Id: Ic7f6ac4a261ccc7af3ffb2ed8950274532e3feae Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/plugins/dpdk/device/init.c')
-rwxr-xr-xsrc/plugins/dpdk/device/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 20272853035..a6b6440f230 100755
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -411,6 +411,10 @@ dpdk_lib_init (dpdk_main_t * dm)
xd->port_conf.rxmode.hw_strip_crc = 1;
break;
+ case VNET_DPDK_PMD_ENA:
+ xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF;
+ break;
+
case VNET_DPDK_PMD_DPAA2:
xd->port_type = VNET_DPDK_PORT_TYPE_ETH_10G;
break;
@@ -736,6 +740,9 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
/* Chelsio T4/T5 */
else if (d->vendor_id == 0x1425 && (d->device_id & 0xe000) == 0x4000)
;
+ /* Amazen Elastic Network Adapter */
+ else if (d->vendor_id == 0x1d0f && d->device_id >= 0xec20 && d->device_id <= 0xec21)
+ ;
/* Mellanox */
else if (d->vendor_id == 0x15b3 && d->device_id >= 0x1013 && d->device_id <= 0x101a)
{