]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Use vport metadata matching only when mandatory
authorMajd Dibbiny <majd@mellanox.com>
Mon, 27 Jan 2020 13:50:29 +0000 (15:50 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 9 Mar 2020 23:58:35 +0000 (16:58 -0700)
commit42e9f4c604456d0d340a9f66d1eca72e9a563bab
treeaf83445e81f6edfcdbcda4511728b075216ea082
parentf84d3bd3592e0c56aafd0e8f2f6fead207b0240b
net/mlx5: E-Switch, Use vport metadata matching only when mandatory

Multi-port RoCE mode requires tagging traffic that passes through the
vport.
This matching can cause performance degradation, therefore disable it
and use the legacy matching on vhca_id and source_port when possible.

Fixes: 1394ff2527a1 ("net/mlx5: E-Switch, Enable vport metadata matching if firmware supports it")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c