]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add ndo_set_feature for uplink representor
authorChris Mi <chrism@mellanox.com>
Thu, 16 May 2019 09:36:43 +0000 (17:36 +0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 7 Jun 2019 21:40:37 +0000 (14:40 -0700)
commitdf5d775b47d85a418e1419bdf1d2ef9da7fa0e67
tree0f09cc03e38bb23d0cb542eb17d7acdcd0b2b52a
parentadaf4583b11f788b160b83fb459394888c572eef
net/mlx5e: Add ndo_set_feature for uplink representor

After we have a dedicated uplink representor, the new netdev ops
doesn't support ndo_set_feature. Because of that, we can't change
some features, eg. rxvlan. Now add it back.

In this patch, I also do a cleanup for the features flag handling,
eg. remove duplicate NETIF_F_HW_TC flag setting.

Fixes: 59bf6c721acc ("net/mlx5e: Uninstantiate esw manager vport netdev on switchdev mode")
Signed-off-by: Chris Mi <chrism@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c