net/mlx5: Fix condition for termination table cleanup
authorEli Cohen <eli@mellanox.com>
Sun, 29 Mar 2020 04:10:43 +0000 (07:10 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 8 Apr 2020 22:46:38 +0000 (15:46 -0700)
commit84be2fdae4f80b7388f754fe49149374a41725f2
treee5d7c429a53e0b16c3adbfaa46dc1687287c832f
parent8c702a53bb0a79bfa203ba21ef1caba43673c5b7
net/mlx5: Fix condition for termination table cleanup

When we destroy rules from slow path we need to avoid destroying
termination tables since termination tables are never created in slow
path. By doing so we avoid destroying the termination table created for the
slow path.

Fixes: d8a2034f152a ("net/mlx5: Don't use termination tables in slow path")
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c