]> 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)
commitbd2f5f99d70d2db4c3c2af0e2e1a7ea21ca34cad
treee5d7c429a53e0b16c3adbfaa46dc1687287c832f
parent2d1b2605d2e43df1733efe4c0ee594812742572f
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: 8d0e2b1d7a55 ("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