]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa4849aa22302f77843b909f045c29a049e9916a
treeec2263d4b7da460a54d4e01309598373442d4ed5
parent2ea5b30953860e1ce4b7fcff811180a8fb1c3f06
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