From: Ori Kam Date: Tue, 6 Nov 2018 06:32:20 +0000 (+0000) Subject: examples/flow_filtering: fix capability setting X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a5e7c52dac2d369af379c59a7770bfd507ccf153;p=dpdk.git 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 --- 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);