From: Adrien Mazarguil Date: Thu, 2 Aug 2018 10:20:51 +0000 (+0200) Subject: net/mlx5: fix VLAN pop action on switch flow rules X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=16ed22ba14ca4bdfa415626fdf76d3354bb5ffdb;p=dpdk.git net/mlx5: fix VLAN pop action on switch flow rules TC message for VLAN POP is broken due to an unfinished nested attribute. Fixes: 7ac6778d50e0 ("net/mlx5: add VLAN item and actions to switch flow rules") Signed-off-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_nl_flow.c b/drivers/net/mlx5/mlx5_nl_flow.c index 8803ffc329..a1c8c340bd 100644 --- a/drivers/net/mlx5/mlx5_nl_flow.c +++ b/drivers/net/mlx5/mlx5_nl_flow.c @@ -991,6 +991,7 @@ action_of_vlan: goto error_nobufs; if (i == TCA_VLAN_ACT_POP) { mnl_attr_nest_end(buf, act); + mnl_attr_nest_end(buf, act_index); ++action; break; }