]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: dropless flow control not always functional
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 19 Aug 2013 06:11:56 +0000 (09:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 07:21:47 +0000 (00:21 -0700)
commit937eb4192d700eb27d42cc688dedfc8d87133579
treea0c6732a04c219bfcbd8300cecbfa9d5de19e3c3
parenta778b7f5928e0937d834ae0971f0da5b13a5bc7b
bnx2x: dropless flow control not always functional

Since commit 0a660f7 "bnx2x: Add a periodic task for link PHY events"
link state changes can be detected not only via the attention flow but also
from the periodic task.
If the link state will change in such a manner (i.e., via the periodic task),
dropless flow-control will not be configured.

This patch remedies the issue, adding the missing configuration to all required
flows.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@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_main.c