]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: fix encapsulation features on 57710/57711
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 16 Mar 2015 15:15:59 +0000 (16:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 21:05:48 +0000 (17:05 -0400)
commit0dcaa82f83f22629b71185a5c1edfa7a454055e0
tree2f9dcc52c327a56ea3b1d5f4031200a67c2925ac
parent5f434a628d8e9bdc538ac056c33a1ba7ce06b07e
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 <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c