From: Ariel Elior Date: Thu, 25 Jun 2015 12:19:27 +0000 (+0300) Subject: bnx2x: Fix statistics gathering on link change X-Git-Tag: omap-for-v4.2/fixes-rc1^2~57^2~25^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc6a20aa3bfcdd23cbc6e2aae79457397e6b6012;p=pandora-kernel.git bnx2x: Fix statistics gathering on link change 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 Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller --- Reading git-diff-tree failed