net/mlx4_en: Fixes for DCBX
authorTariq Toukan <tariqt@mellanox.com>
Sun, 11 Sep 2016 07:56:19 +0000 (10:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2016 02:40:26 +0000 (19:40 -0700)
commit564ed9b187082da79726a2f25bb88a58ebeec7e8
tree5e85335819dd264382ecb66c47a8cab88e3d9062
parentc677071741343381f4f555867c04af7ec4a90869
net/mlx4_en: Fixes for DCBX

This patch adds a capability check before enabling DCBX.
In addition, it re-organizes the relevant data structures,
and fixes a typo in a define.

Fixes: af7d51852631 ("net/mlx4_en: Add DCB PFC support through CEE netlink commands")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
drivers/net/ethernet/mellanox/mlx4/port.c