From: Michal Schmidt Date: Mon, 16 Mar 2015 15:15:59 +0000 (+0100) Subject: bnx2x: fix encapsulation features on 57710/57711 X-Git-Tag: omap-for-v4.1/fixes-rc1~306^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8e0c246dacfb0558e801ab81af3f670056fd1b2;p=pandora-kernel.git bnx2x: fix encapsulation features on 57710/57711 E1x chips (57710, 57711(E)) have no support for encapsulation offload. bnx2x incorrectly advertises the support as available. Setting of those features is conditional on "!CHIP_IS_E1x(bp)", but the bp struct is not initialized yet at this point and consequently any chip passes the check. The check must use the "chip_is_e1x" local variable instead to work correctly. Signed-off-by: Michal Schmidt Signed-off-by: David S. Miller --- Reading git-diff-tree failed