]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Fix statistics gathering on link change
authorAriel Elior <Ariel.Elior@qlogic.com>
Thu, 25 Jun 2015 12:19:27 +0000 (15:19 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:03:04 +0000 (18:03 -0400)
commit167c6981d7687feac9da32022c4479394d9034e3
treef846d62d2501a9c5542b09212d103eeda7912778
parentc76f2d095108f89e4c898976e52c5d6bddc57b81
bnx2x: Fix statistics gathering on link change

Orabug: 22066196

Since driver statistics flow access MACs and those might reset during
link re-configurations, when we're about to change link properties we
have to make sure that statistics are not operational.
Statisics would be re-enabled [i.e., gathering of statistics would
re-commence] once physical link is achieved again.

Since driver employs a link-flap avoidance scheme, there are scenarios
where driver will receive no indication that the new link is up, and
as a result the statistics would not be re-enabled.

Preventing LFA from working in such cases would guarantee that we'll
always receive such indications and thus will fix statistics gathering.

Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit dc6a20aa3bfcdd23cbc6e2aae79457397e6b6012)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c