]> 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)
commit5ced7102b09d4e9513d56bc6ca7a3068f42c5500
tree4f16baab31f401dc0d69abb1d365e27fedbc4bdf
parent23aa03152ee42fead16db9da3c2d3bf5aab8a572
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