]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77c3bfe299a1904ea5b82a756968305b492067dc
treee5d7c429a53e0b16c3adbfaa46dc1687287c832f
parent2052c53dd14846db232406c6b87ca7322b464ac3
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: 987fbbecdc3d ("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