net/mlx5: Add support to use SMFS in switchdev mode
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 18 Aug 2019 16:18:11 +0000 (19:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 3 Sep 2019 19:54:24 +0000 (12:54 -0700)
commit8463daf17e800c11d0f837aed2e2813391593916
tree638ce132aac495aa22909cd909f709d8c45a0783
parent38b9d1c62a6e9428048e4d080d2aabd0dc2e7f88
net/mlx5: Add support to use SMFS in switchdev mode

In case that flow steering mode of the driver is SMFS (Software Managed
Flow Steering), then use the DR (SW steering) API to create the steering
objects.

In addition, add a call to the set peer namespace when switchdev gets
devcom pair event. It is required to support VF LAG in SMFS.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c