netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cleanup large frame handling for natsemi.c
@ 2004-06-20 12:14 Manfred Spraul
  2004-06-20 16:30 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Manfred Spraul @ 2004-06-20 12:14 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Hi,

The DP83815/6 by default rejects frames longer that 1518 bytes 
(including crc). This means that a special flag must be set for 8021q - 
otherwise mtu sized packets are dropped.
The current driver enables this flag only if the buffer size is above 
1536 bytes - this is wrong. Additionally, the nic writes up to two bytes 
behind the indicated end of the buffer. This is not documented, thus 
I've added 64 bytes - just to be safe.
The patch also removes RX_OFFSET from the rx buffer allocation: The nic 
can only receive to 32-bit aligned addresses, it's a left over from a 
skeleton driver.

Jeff, could you apply it? I've stress tested vlan for an hour with 
tbench and parallel kernel compiles, not obvious problems.

--
    Manfred

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-20 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-20 12:14 [PATCH] cleanup large frame handling for natsemi.c Manfred Spraul
2004-06-20 16:30 ` Jeff Garzik
2004-06-20 16:43   ` Manfred Spraul
2004-06-20 18:38     ` Jeff Garzik
2004-06-20 19:31       ` Manfred Spraul

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).