From: David Miller <davem@davemloft.net>
To: dja@axtens.net
Cc: netdev@vger.kernel.org, tlfalcon@linux.vnet.ibm.com,
Yuval.Mintz@cavium.com
Subject: Re: [PATCH v2] bnx2x: disable GSO where gso_size is too big for hardware
Date: Mon, 15 Jan 2018 14:06:35 -0500 (EST) [thread overview]
Message-ID: <20180115.140635.2227899396084253886.davem@davemloft.net> (raw)
In-Reply-To: <20180111235905.10110-1-dja@axtens.net>
From: Daniel Axtens <dja@axtens.net>
Date: Fri, 12 Jan 2018 10:59:05 +1100
> If a bnx2x card is passed a GSO packet with a gso_size larger than
> ~9700 bytes, it will cause a firmware error that will bring the card
> down:
>
> bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert!
> bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT_LIST_INDEX 0x2
> bnx2x: [bnx2x_mc_assert:736(enP24p1s0f0)]XSTORM_ASSERT_INDEX 0x0 = 0x00000000 0x25e43e47 0x00463e01 0x00010052
> bnx2x: [bnx2x_mc_assert:750(enP24p1s0f0)]Chip Revision: everest3, FW Version: 7_13_1
> ... (dump of values continues) ...
>
> Detect when gso_size + header length is greater than the maximum
> packet size (9700 bytes) and disable GSO. For simplicity and speed
> this is approximated by comparing gso_size against 9200 and assuming
> no-one will have more than 500 bytes of headers.
What is the MTU size configured on the bnx2x device when these 9700
byte packets are seen?
If it's less than 9700, whatever is allowing your device (openvswitch,
ibmveth, whatever) needs to be fixed.
I don't like this at all, quite frankly. We'll have one device now that
has this special check, probably many others can run into this situation
as well but they won't be used on these kinds of powerpc boxes and
therefore nobody is going to notice.
I'm not applying this without more information or better justification,
sorry.
next prev parent reply other threads:[~2018-01-15 19:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 23:59 [PATCH v2] bnx2x: disable GSO where gso_size is too big for hardware Daniel Axtens
2018-01-12 11:48 ` Marcelo Ricardo Leitner
2018-01-12 11:53 ` Marcelo Ricardo Leitner
2018-01-15 19:44 ` Stephen Hemminger
2018-01-15 14:58 ` Chopra, Manish
2018-01-15 19:06 ` David Miller [this message]
2018-01-16 0:12 ` Daniel Axtens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180115.140635.2227899396084253886.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Yuval.Mintz@cavium.com \
--cc=dja@axtens.net \
--cc=netdev@vger.kernel.org \
--cc=tlfalcon@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).