net/mlx5e: Only support tx/rx pause setting for port owner
authorHuy Nguyen <huyn@mellanox.com>
Thu, 1 Aug 2019 16:10:19 +0000 (11:10 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Aug 2019 20:01:18 +0000 (13:01 -0700)
commit466df6eb4a9e813b3cfc674363316450c57a89c5
tree6e5f4488d8fa6945df2b8e3e6a7ab362c1761512
parent93b3586e070b14704dd7bff81fbcefd64663f3c2
net/mlx5e: Only support tx/rx pause setting for port owner

Only support changing tx/rx pause frame setting if the net device
is the vport group manager.

Fixes: 3c2d18ef22df ("net/mlx5e: Support ethtool get/set_pauseparam")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c