]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit640bdb1fdb4ee42fa469c7842e0fac7b0ada7b9d
tree125816720b90d71ef0e91179cc1cb6d65c3dcb97
parent48cbde4bd2c7c028a7205cb83386bb345c315adc
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: 26d688e33f88 ("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