From: NĂ©lio Laranjeiro Date: Tue, 31 Oct 2017 15:51:10 +0000 (+0100) Subject: net/mlx5: fix parser inner value X-Git-Tag: spdx-start~968 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c4814b22274b1c0770c890e3f7bfdc75da406b66;p=dpdk.git net/mlx5: fix parser inner value In validate() it sets the value to 1 whereas the expected one is IBV_FLOW_SPEC_INNER. Fixes: c2c6ddd51da4 ("net/mlx5: limit flow API rules to one tunnel") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c9e6c52100..f4bdf2c328 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -866,7 +866,7 @@ priv_flow_convert_items_validate(struct priv *priv, " VXLAN encapsulations"); return -rte_errno; } - parser->inner = 1; + parser->inner = IBV_FLOW_SPEC_INNER; } if (parser->drop) { parser->drop_q.offset += cur_item->dst_sz;