From: Andrew Morton <akpm@linux-foundation.org>
To: netdev@vger.kernel.org
Cc: bugzilla-daemon@bugzilla.kernel.org,
bugme-daemon@bugzilla.kernel.org, weinholt@csbnet.se,
Steve Glendinning <steve.glendinning@smsc.com>
Subject: Re: [Bugme-new] [Bug 30092] New: smsc911x.c drops long packets with VLAN tags
Date: Tue, 1 Mar 2011 16:15:47 -0800 [thread overview]
Message-ID: <20110301161547.13480e90.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-30092-10286@https.bugzilla.kernel.org/>
(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).
On Mon, 28 Feb 2011 15:57:14 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=30092
>
> Summary: smsc911x.c drops long packets with VLAN tags
> Product: Drivers
> Version: 2.5
> Kernel Version: 2.6.36.4
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Network
> AssignedTo: drivers_network@kernel-bugs.osdl.org
> ReportedBy: weinholt@csbnet.se
> Regression: No
>
>
> The smsc911x.c driver can't receive packets of the maximum MTU if they have a
> 802.1q tag. Testing with ping -s 1500 shows that the frame with the first IP
> segment is dropped.
>
> The source of the problem is this line at smsc911x.c:1023 (smsc911x_poll):
>
> if (unlikely(rxstat & RX_STS_ES_)) {
>
> The datasheet at
> http://www.smsc.com/media/Downloads_Public/Data_Sheets/9221.pdf describes this
> bit as a logical OR of bits 11, 7, 6 and 1. The problem is that bit 7 is set if
> the packet is longer than 1518 bytes, which is true for the 802.1q tagged
> packets. As a quick and dirty solution, I replaced RX_STS_ES_ with
> (1<<11|1<<6|1<<1), and now 802.1q tagged packets are received just fine.
>
> This was tested on an IGEPv2, which has a SMSC LAN9221i.
>
Thanks. Become famous, get more girls: send us a patch as per
Documentation/SubmittingPatches :)
next parent reply other threads:[~2011-03-02 0:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-30092-10286@https.bugzilla.kernel.org/>
2011-03-02 0:15 ` Andrew Morton [this message]
2011-03-02 14:07 ` [Bugme-new] [Bug 30092] New: smsc911x.c drops long packets with VLAN tags Göran Weinholt
2011-03-07 20:31 ` David Miller
2011-03-08 10:27 ` Steve.Glendinning
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=20110301161547.13480e90.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=steve.glendinning@smsc.com \
--cc=weinholt@csbnet.se \
/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).