]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b463ee1099f491f8d9c7483cb759dc1485f4dad
tree5f066c5a33a8944c30688f8be2543b999a47b72e
parent9dc9c2c83b72c150ae402afae268bd05b999cda8
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: 4d7c893848c7 ("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