net/mlx5e: Prevent PFC call for non ethernet ports
authorFeras Daoud <ferasda@mellanox.com>
Sun, 4 Jun 2017 14:45:02 +0000 (17:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Jun 2017 15:40:20 +0000 (18:40 +0300)
commitc66f2091c9248ddf42504c74cd327ae8619b04a4
treeec2263d4b7da460a54d4e01309598373442d4ed5
parent4301ba7b3ed9d3ffbaebc295413fcd3e8ab34949
net/mlx5e: Prevent PFC call for non ethernet ports

Port flow control supported only for ethernet ports,
therefore, prevent any call if the port type differs from
MLX5_CAP_PORT_TYPE_ETH.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c