]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix DCB_CAP_ATTR_DCBX capability for DCBNL getcap.
authorHuy Nguyen <huyn@mellanox.com>
Mon, 10 Jul 2017 19:00:23 +0000 (14:00 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:42 +0000 (21:20 +0300)
commita93160fb0a3d79be19e96921c8c7396866b6635f
tree43343204c38186f092803444aaac87fee406ac7d
parentc547fe5f4a047953076a8cf1fa1063d5e8214e22
net/mlx5e: Fix DCB_CAP_ATTR_DCBX capability for DCBNL getcap.

Current code doesn't report DCB_CAP_DCBX_HOST capability when query
through getcap. User space lldptool expects capability to have HOST mode
set when it wants to configure DCBX CEE mode. In absence of HOST mode
capability, lldptool fails to switch to CEE mode.

This fix returns DCB_CAP_DCBX_HOST capability when port's DCBX
controlled mode is under software control.

Fixes: f3d235f49dc8 ("net/mlx5e: Support DCBX CEE API")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Parav Pandit <parav@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_dcbnl.c