]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Add match on vport when in switchdev mode
authorMark Bloch <markb@mellanox.com>
Tue, 16 Jan 2018 14:44:29 +0000 (14:44 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:39 +0000 (12:36 -0800)
commit8bf3536ddcc43887a6be9deba6f3a8cb9c8a8701
tree0a7c8c8af96aa7ac1941e0a972135a53142f92be
parentc7a4516fb32b13e94a3e49155718ddb397fa6eec
IB/mlx5: Add match on vport when in switchdev mode

When we point to a representor, it means we are in switchdev mode.
The flow db is shared between PF and virtual function representors
so each rule created needs to have a match on its specific source port.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c