Acked-by: Wei Zhao <[email protected]>

> -----Original Message-----
> From: Ori Kam [mailto:[email protected]]
> Sent: Tuesday, November 6, 2018 2:32 PM
> To: Ori Kam <[email protected]>; Zhao1, Wei <[email protected]>
> Cc: [email protected]
> Subject: [PATCH] examples/flow_filtering: fix capability setting
> 
> The tx offloads should be compared to tx capability
> 
> Fixes: fb152e54ee04 ("examples/flow_filtering: fix set offloads based oncap")
> Cc: [email protected]
> Cc: [email protected]
> 
> Signed-off-by: Ori Kam <[email protected]>
> ---
>  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 27e287a..a582ac0 100644
> --- a/examples/flow_filtering/main.c
> +++ b/examples/flow_filtering/main.c
> @@ -137,7 +137,7 @@
>       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);
> --
> 1.8.3.1

Reply via email to