]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:22:08 +0000 (08:22 +0200)
commit9b919ad3f99f689c169c7fbd9ba7ac164f51c23b
treef1094ce8b313760fb6b1518c155d143dfad7d520
parent31034e443fbff6622edf84c134fc74decc2349c8
net/mlx5e: Check for qos capability in dcbnl_initialize

[ Upstream commit 33c52b6718d2a6cb414440c98560818910d896dc ]

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: e207b7e99176 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c