summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
diff options
context:
space:
mode:
authorOr Gerlitz2013-04-07 05:44:08 +0200
committerDavid S. Miller2013-04-07 22:55:47 +0200
commitc4637cdf4839938a1c87d8da8f55055d6e9ec206 (patch)
tree4d32f14abaaf3008c90d2d547cd25871f1953716 /drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
parentnet/mlx4_en: Enable DCB ETS ops only when supported by the firmware (diff)
downloadkernel-qcow2-linux-c4637cdf4839938a1c87d8da8f55055d6e9ec206.tar.gz
kernel-qcow2-linux-c4637cdf4839938a1c87d8da8f55055d6e9ec206.tar.xz
kernel-qcow2-linux-c4637cdf4839938a1c87d8da8f55055d6e9ec206.zip
net/mlx4_en: Advertize DCB_CAP_DCBX_HOST in getdcbx
When our getdcbx entry is called, DCB_CAP_DCBX_HOST should be advertized too. Cc: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
index 321553fd58df..0f91222ea3d7 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
@@ -186,7 +186,7 @@ static int mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev,
static u8 mlx4_en_dcbnl_getdcbx(struct net_device *dev)
{
- return DCB_CAP_DCBX_VER_IEEE;
+ return DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE;
}
static u8 mlx4_en_dcbnl_setdcbx(struct net_device *dev, u8 mode)