OSDN Git Service

net/mlx5e: Add missing capability check for uplink follow
authorAya Levin <ayal@nvidia.com>
Tue, 24 Nov 2020 20:16:23 +0000 (22:16 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 7 Jan 2021 20:22:48 +0000 (12:22 -0800)
commit9c9be85f6b59d80efe4705109c0396df18d4e11d
tree5f066c5a33a8944c30688f8be2543b999a47b72e
parentabf8ef953a43e74aac3c54a94975f21bd483199b
net/mlx5e: Add missing capability check for uplink follow

Expose firmware indication that it supports setting eswitch uplink state
to follow (follow the physical link). Condition setting the eswitch
uplink admin-state with this capability bit. Older FW may not support
the uplink state setting.

Fixes: 7d0314b11cdd ("net/mlx5e: Modify uplink state on interface up/down")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/linux/mlx5/mlx5_ifc.h