]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: CT: Fix insert rules when TC_CT config isn't enabled
authorPaul Blakey <paulb@mellanox.com>
Sun, 15 Mar 2020 13:18:47 +0000 (15:18 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:21 +0000 (19:41 -0700)
commit45f13e1cde792abf8f45d7aa479f280aa3c9eb21
tree7082249c05c0227c7d69bf113a26d491ac96a134
parentaf491b89f001b0e8521ae4a1a3e86f5c4203ff48
net/mlx5e: CT: Fix insert rules when TC_CT config isn't enabled

If CONFIG_MLX5_TC_CT isn't enabled, all offloading of eswitch tc rules
fails on parsing ct match, even if there is no ct match.

Return success if there is no ct match, regardless of config.

Fixes: 2989085705f6 ("net/mlx5e: CT: Introduce connection tracking")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h