]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Allow matching on vport based on vhca_id
authorAlaa Hleihel <alaa@mellanox.com>
Wed, 18 Sep 2019 09:23:10 +0000 (12:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Sep 2019 09:38:07 +0000 (12:38 +0300)
commitc8d0963796c78ef6b40d24c86ea0c1ad0e32dcf7
tree125816720b90d71ef0e91179cc1cb6d65c3dcb97
parent5c1343f6090727931318de8a50808ef24fbd114e
net/mlx5: DR, Allow matching on vport based on vhca_id

In case source_eswitch_owner_vhca_id is given as a match,
the source_vport (vhca_id) will be set in case vhca_id_valid.

This will allow matching on peer vports, vports that belong
to the other pf.

Fixes: 19059f2dc873 ("net/mlx5: DR, Add Steering entry (STE) utilities")
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h