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)
commit3cfc4332edbc0e96af99be9c1cadf10c8b7113fb
tree7082249c05c0227c7d69bf113a26d491ac96a134
parent35e725e1b9d645cc412e06bbc204d63dddb1512b
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: 4c3844d9e97e ("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