From 6d1b079bf38882458dc7634d3e302e73d33897a1 Mon Sep 17 00:00:00 2001 From: Mohammed Hawari Date: Wed, 8 Sep 2021 10:39:14 +0200 Subject: dpdk: fix coverity Coverity does not seem happy about exotic control flows in switch/case statements Change-Id: Ie006190058f811aacf85125ebc58330d9c53510f Signed-off-by: Mohammed Hawari Type: fix Fixes: 0b42ac565b970c186a9ad734f980b440f56fb25b --- src/plugins/dpdk/device/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/dpdk') diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 8c49ab841fd..f7c1cc106ba 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -495,6 +495,8 @@ dpdk_lib_init (dpdk_main_t * dm) xd->flags |= DPDK_DEVICE_FLAG_TX_OFFLOAD | DPDK_DEVICE_FLAG_INTEL_PHDR_CKSUM; } + xd->port_type = port_type_from_speed_capa (&dev_info); + break; case VNET_DPDK_PMD_CXGBE: case VNET_DPDK_PMD_MLX4: case VNET_DPDK_PMD_QEDE: -- cgit 1.2.3-korg