]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Use indirect table only if all destinations support it
authorMaor Dickman <maord@nvidia.com>
Tue, 23 Nov 2021 12:37:11 +0000 (14:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 1 Dec 2021 06:35:05 +0000 (22:35 -0800)
commitdc40fcd2dee3c2a07a7318501f3c2f0f5dd0cbec
tree7828d079f4af7db11ab3659d1a47f1ad81e217a0
parentd462783703eea1f9a12283c812e53b7e2afda282
net/mlx5: E-Switch, Use indirect table only if all destinations support it

When adding rule with multiple destinations, indirect table is used for all of
the destinations if at least one of the destinations support it, this can cause
creation of invalid indirect tables for the destinations that doesn't support it.

Fixed it by using indirect table only if all destinations support it.

Fixes: 8ce9bb6bce82 ("net/mlx5e: VF tunnel RX traffic offloading")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c