aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2021-09-08 10:39:14 +0200
committerMohammed Hawari <mohammed@hawari.fr>2021-09-08 10:41:25 +0200
commit6d1b079bf38882458dc7634d3e302e73d33897a1 (patch)
tree8ff8fbca6cca34808b351408d6b1960399bb5d8b
parenteed6fc9a98e2574a9f39caec512a072e60b0bdb5 (diff)
dpdk: fix coverity
Coverity does not seem happy about exotic control flows in switch/case statements Change-Id: Ie006190058f811aacf85125ebc58330d9c53510f Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: fix Fixes: 0b42ac565b970c186a9ad734f980b440f56fb25b
-rw-r--r--src/plugins/dpdk/device/init.c2
1 files changed, 2 insertions, 0 deletions
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: