]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bnx2x: really disable TPA if 'disable_tpa' option is set
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 27 Apr 2015 15:20:38 +0000 (17:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2015 17:42:39 +0000 (13:42 -0400)
commit22a8f237c0551bae95ffcd2a7ff17d6f5fcce7e7
treedcf7a9c4c678f20cbaa3d5201b8ae668eac10d6e
parent94435f764cc5838a7e94008f17628ad63384bf06
bnx2x: really disable TPA if 'disable_tpa' option is set

bnx2x's 'disable_tpa=1' module option is not respected properly and TPA
(transparent packet aggregation) remains enabled. Even though the
module option causes LRO to be disabled, TPA is enabled in GRO mode.

Additionally, disabling GRO via ethtool then has no effect. One can
still observe tpa_* statistics increase and large packets being received
in tcpdump.

The bug was an unintended consequence of commit aebf6244cd39 "bnx2x: Be
more forgiving toward SW GRO".

Fix it by following the bp->disable_tpa flag when initializing fp's.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c