net/mlx5: E-Switch, Support load/unload reps of specific vport types
authorBodong Wang <bodong@mellanox.com>
Wed, 30 Jan 2019 04:57:21 +0000 (22:57 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 Feb 2019 01:25:57 +0000 (17:25 -0800)
commit29d9fd7d5a667b120f8228da3d8a8d1b2382538d
treef7aa4d03bb9ce3ca510572402295d2dd9324c470
parentf121e0ea9586b2c937bf1ff9a0b682dc6424ce1d
net/mlx5: E-Switch, Support load/unload reps of specific vport types

Currently the driver loads and unloads all reps in an unbreakable
group. However, with ECPF, the reps of special vports such as uplink
and host PF should always be loaded in switchdev mode where the reps
for VFs will be loaded on-demand and unloaded on no-demand. This is
a pre-step for that change.

This patch doesn't change any functionality.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c