]> 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)
commitfb2f900e52343211dce068501976c95692407124
treea0c6732a04c219bfcbd8300cecbfa9d5de19e3c3
parent0de7e27a40ff46c29229d7746d0f6b5df11a5aff
bnx2x: dropless flow control not always functional

Since commit cabe62e "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