net/mlx5: fix VLAN pop action on switch flow rules
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 2 Aug 2018 10:20:51 +0000 (12:20 +0200)
committerShahaf Shuler <shahafs@mellanox.com>
Thu, 2 Aug 2018 11:47:57 +0000 (13:47 +0200)
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 <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_nl_flow.c

index 8803ffc..a1c8c34 100644 (file)
@@ -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;
                }