Skip to content

bnx2x: disable GSO on too-large packets

Daniel Axtens netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 4 repliesIn review
  2. v32 patches 6 repliesSuperseded

Changes in v4 from the cover letter

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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: create skb_gso_validate_mac_len()include/linux/skbuff.h net/core/skbuff.c net/sched/sch_tbf.c+66 -230 replies
2/2bnx2x: disable GSO where gso_size is too big for hardwaredrivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c+18 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric Dumazet
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] 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/

Cc Eric Dumazet <[email protected]>
Cc Jason Wang <[email protected]>
Cc Pravin Shelar <[email protected]>
Cc Marcelo Ricardo Leitner <[email protected]>

Daniel Axtens (2):
net: create skb_gso_validate_mac_len()
bnx2x: disable GSO where gso_size is too big for hardware

 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 18 +++++++
 include/linux/skbuff.h                           | 16 ++++++
 net/core/skbuff.c                                | 63 +++++++++++++++++++-----
 net/sched/sch_tbf.c                              | 10 ----
 4 files changed, 84 insertions(+), 23 deletions(-)
Signature · 1 line
2.14.1