From: Yuval Mintz Date: Thu, 25 Jun 2015 12:19:21 +0000 (+0300) Subject: bnx2x: Correct asymmetric flow-control X-Git-Tag: omap-for-v4.2/fixes-rc1^2~57^2~25^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1359d73c1d6fa737545d946f9bcb4b9a6b13a6ea;p=pandora-kernel.git bnx2x: Correct asymmetric flow-control This fixes several issues relating to asymmetric configuration: 1. When user requests to disable TX, the local-device needs to advertise both PAUSE and ASM_DIR, but to avoid transmitting pause frames. In the 578xx, it would ignore the TX disable. 2. When user advertises RX-only, ASM_DIR was advertised instead of PAUSE/ASM_DIR. 3. When changing mode, the advertised PAUSE/ASM_DIR was not cleared before setting new one, so disabling RX or TX had no impact on the 'advertised' as appeared in the 'ethtool -a' output. Signed-off-by: Yaniv Rosner Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller --- Reading git-diff-tree failed