From: Daniel Axtens Subject: [PATCH v4 0/2] bnx2x: disable GSO on too-large packets Date: Wed, 31 Jan 2018 14:15:32 +1100 Message-ID: <20180131031534.25166-1-dja@axtens.net> Cc: Daniel Axtens , Eric Dumazet , Manish.Chopra@cavium.com, Jason Wang , Pravin Shelar , Marcelo Ricardo Leitner To: netdev@vger.kernel.org Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:38170 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbeAaDSo (ORCPT ); Tue, 30 Jan 2018 22:18:44 -0500 Received: by mail-pg0-f65.google.com with SMTP id y27so8943997pgc.5 for ; Tue, 30 Jan 2018 19:18:44 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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 Cc: Manish.Chopra@cavium.com Cc: Jason Wang Cc: Pravin Shelar Cc: Marcelo Ricardo Leitner 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(-) -- 2.14.1