l4fwd: Change rx offload default 08/24708/2
authorMariusz Drost <mariuszx.drost@intel.com>
Fri, 31 Jan 2020 12:18:43 +0000 (12:18 +0000)
committerKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 3 Feb 2020 11:34:30 +0000 (11:34 +0000)
Tap interface does not provide any offload capabilities. To use that
interface with l4fwd app, default offload capabilities should be
set to 0.

Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com>
Change-Id: If30f44bb986b87e079be3ec1dfe0ad5341862030

examples/l4fwd/main.c

index 9396403..469776f 100644 (file)
@@ -66,11 +66,7 @@ static struct rte_mempool *mpool[RTE_MAX_NUMA_NODES + 1];
 static struct rte_mempool *frag_mpool[RTE_MAX_NUMA_NODES + 1];
 static char proto_name[3][10] = {"udp", "tcp", ""};
 
-static const struct rte_eth_conf port_conf_default = {
-       .rxmode = {
-               .offloads = DEV_RX_OFFLOAD_VLAN_STRIP,
-       },
-};
+static const struct rte_eth_conf port_conf_default;
 
 struct tx_content tx_content = {
        .sz = 0,