Merge branch 'bnx2x-disable-GSO-on-too-large-packets'
authorDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 14:36:04 +0000 (09:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 14:36:04 +0000 (09:36 -0500)
commit26c26ab02c49e64dbac3a9f56806005bc9e8b914
tree0f9864224175e08f9570804f2be150f459cf37e8
parent255442c93843f52b6891b21d0b485bf2c97f93c3
parent8914a595110a6eca69a5e275b323f5d09e18f4f9
Merge branch 'bnx2x-disable-GSO-on-too-large-packets'

Daniel Axtens says:

====================
bnx2x: disable GSO on too-large packets

We observed a case where a packet received on an ibmveth device had a
GSO size of around 10kB. This was forwarded by Open vSwitch to a bnx2x
device, where it caused a firmware assert. This is described in detail
at [0].

Ultimately we want a fix in the core, but that is very tricky to
backport. So for now, just stop the bnx2x driver from crashing.

When net-next re-opens I will send the fix to the core and a revert
for this.

v4 changes:
  - fix compilation error with EXPORTs (patch 1)
  - only do slow test if gso_size is greater than 9000 bytes (patch 2)

Thanks,
Daniel

[0]: https://patchwork.ozlabs.org/patch/859410/
====================

Signed-off-by: David S. Miller <davem@davemloft.net>