net/mlx5: fix VXLAN device rollback if rule apply fails
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Sat, 10 Nov 2018 10:01:59 +0000 (10:01 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit817a6c47404550374d5a0700b328a803bec9b13e
tree280b2aedee093005d1c6df5fef403225e65828fb
parent1f6448617000668edc246fd16df7802cda91436f
net/mlx5: fix VXLAN device rollback if rule apply fails

If rule contains tunneling action (like VXLAN encapsulation)
the VTEP (Virtual Tunneling EndPoint) device is pre-configured
before applying the rule. If kernel returns an error this
VTEP configuration should be rolled back to the origin state.
The patch adds the missing VTEP configuration restoration.

Fixes: 95a464cecc21 ("net/mlx5: add E-switch VXLAN tunnel devices management")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow_tcf.c