]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Allow RX/TX pause control in autoneg
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 24 Apr 2013 01:44:59 +0000 (01:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2013 20:33:53 +0000 (16:33 -0400)
commitaf0214d521a6dc9226ab1fbb17570e2da853c634
tree4f16baab31f401dc0d69abb1d365e27fedbc4bdf
parent7affb1f4352a279c3c8c541f67f6a60e39d9a7e7
bnx2x: Allow RX/TX pause control in autoneg

Currently, when link is configured to auto-negotiate the flow control,
disabling RX/TX pause via ethtool doesn't work.

This fixes the behaviour, advertising asymmetric pause in case either one
is exclusively enabled.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c