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)
commit9e10bf1d349787f373484d835efe2dbb5f9c5614
tree43343204c38186f092803444aaac87fee406ac7d
parent33c52b6718d2a6cb414440c98560818910d896dc
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: 3a6a931dfb8e ("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