From a5e7c52dac2d369af379c59a7770bfd507ccf153 Mon Sep 17 00:00:00 2001 From: Ori Kam Date: Tue, 6 Nov 2018 06:32:20 +0000 Subject: [PATCH] examples/flow_filtering: fix capability setting The tx offloads should be compared to tx capability Fixes: c82f2f8b4b3a ("examples/flow_filtering: filter out unsupported offloads") Cc: stable@dpdk.org Signed-off-by: Ori Kam Acked-by: Wei Zhao --- examples/flow_filtering/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/main.c index 27e287ae74..a582ac0752 100644 --- a/examples/flow_filtering/main.c +++ b/examples/flow_filtering/main.c @@ -137,7 +137,7 @@ init_port(void) struct rte_eth_dev_info dev_info; rte_eth_dev_info_get(port_id, &dev_info); - port_conf.txmode.offloads &= dev_info.rx_offload_capa; + port_conf.txmode.offloads &= dev_info.tx_offload_capa; printf(":: initializing port: %d\n", port_id); ret = rte_eth_dev_configure(port_id, nr_queues, nr_queues, &port_conf); -- 2.20.1