TC message for VLAN POP is broken due to an unfinished nested attribute.

Fixes: fdc4d0f4c7e1 ("net/mlx5: add VLAN item and actions to switch flow rules")

Signed-off-by: Adrien Mazarguil <adrien.mazarg...@6wind.com>
---
 drivers/net/mlx5/mlx5_nl_flow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/mlx5_nl_flow.c b/drivers/net/mlx5/mlx5_nl_flow.c
index 8803ffc32..a1c8c340b 100644
--- a/drivers/net/mlx5/mlx5_nl_flow.c
+++ b/drivers/net/mlx5/mlx5_nl_flow.c
@@ -991,6 +991,7 @@ mlx5_nl_flow_transpose(void *buf,
                        goto error_nobufs;
                if (i == TCA_VLAN_ACT_POP) {
                        mnl_attr_nest_end(buf, act);
+                       mnl_attr_nest_end(buf, act_index);
                        ++action;
                        break;
                }
-- 
2.11.0

Reply via email to