]> 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)
commitd4078d5c9a7555b1ccaf7916acbb33cdaa3bda85
tree5f066c5a33a8944c30688f8be2543b999a47b72e
parentd3ff4a426e21b2cb8ae53e7ce8c73d971c67fa59
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: 8ad392b55efd ("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