net/mlx5e: Only support tx/rx pause setting for port owner
commite2d8229bba1bc6f61d5bca1a97dedf4da947e312
authorHuy Nguyen <huyn@mellanox.com>
Thu, 1 Aug 2019 16:10:19 +0000 (1 11:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:51:52 +0000 (25 10:51 +0200)
treea92f17bfde85d599d30e0ddc88fa7e46ea2a0dd0
parent47fd4df0c2731cec115d1bee0eb28030355e84ea
net/mlx5e: Only support tx/rx pause setting for port owner

[ Upstream commit 466df6eb4a9e813b3cfc674363316450c57a89c5 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c