From 53ba544d78070f029d3811b95f0cdfd8851978da Mon Sep 17 00:00:00 2001 From: ChenminSun Date: Wed, 13 Mar 2019 22:18:39 +0800 Subject: dpdk: Add E810 family support Change-Id: Id5b30d7a394551844a79b3d222d2d26194d033df Signed-off-by: ChenminSun --- src/plugins/dpdk/device/dpdk.h | 1 + src/plugins/dpdk/device/format.c | 4 ++++ src/plugins/dpdk/device/init.c | 1 + 3 files changed, 6 insertions(+) diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 161dade478b..fda42f996e9 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -68,6 +68,7 @@ extern vlib_node_registration_t admin_up_down_process_node; _ ("net_ixgbe_vf", IXGBEVF) \ _ ("net_i40e", I40E) \ _ ("net_i40e_vf", I40EVF) \ + _ ("net_ice", ICE) \ _ ("net_virtio", VIRTIO) \ _ ("net_enic", ENIC) \ _ ("net_vmxnet3", VMXNET3) \ diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index 9dbaaba5ba8..add16039015 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -283,6 +283,10 @@ format_dpdk_device_type (u8 * s, va_list * args) dev_type = "Intel X710/XL710 Family VF"; break; + case VNET_DPDK_PMD_ICE: + dev_type = "Intel E810 Family"; + break; + case VNET_DPDK_PMD_FM10K: dev_type = "Intel FM10000 Family Ethernet Switch"; break; diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 09996412b2f..1a7792bf197 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -388,6 +388,7 @@ dpdk_lib_init (dpdk_main_t * dm) case VNET_DPDK_PMD_IGB: case VNET_DPDK_PMD_IXGBE: case VNET_DPDK_PMD_I40E: + case VNET_DPDK_PMD_ICE: xd->port_type = port_type_from_speed_capa (&dev_info); xd->supported_flow_actions = VNET_FLOW_ACTION_MARK | VNET_FLOW_ACTION_REDIRECT_TO_NODE | -- cgit 1.2.3-korg