]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Check for qos capability in dcbnl_initialize
authorHuy Nguyen <huyn@mellanox.com>
Thu, 13 Jul 2017 18:45:11 +0000 (13:45 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:42 +0000 (21:20 +0300)
commit5a471176131e404fb2709f4a8eed91d72b5851fd
tree460979e6104120a046515b4c06147ceffdccb214
parentbe8c707c1e79efbebe71d0d5804c56738b9bf6db
net/mlx5e: Check for qos capability in dcbnl_initialize

qos capability is the master capability bit that determines
if the DCBX is supported for the PCI function. If this bit is off,
driver cannot run any dcbx code.

Fixes: 5727a61a16a8 ("net/mlx5e: ConnectX-4 firmware support for DCBX")
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_dcbnl.c