]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitba35a0fd1ff7b5e91a6eee145e56887edffa194c
tree4f16baab31f401dc0d69abb1d365e27fedbc4bdf
parent2c2d06d5126e62e90aee71da9b85c9d95de6bbe2
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