examples/flow_filtering: fix capability setting
authorOri Kam <orika@mellanox.com>
Tue, 6 Nov 2018 06:32:20 +0000 (06:32 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
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 <orika@mellanox.com>
Acked-by: Wei Zhao <wei.zhao1@intel.com>
examples/flow_filtering/main.c

index 27e287a..a582ac0 100644 (file)
@@ -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);