netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Erdfelt <johannes@erdfelt.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@oss.sgi.com
Subject: Re: [RFC] tulip VLAN support
Date: Wed, 5 Jan 2005 14:31:47 -0800	[thread overview]
Message-ID: <20050105223147.GE18847@sventech.com> (raw)
In-Reply-To: <41DC6669.9090407@pobox.com>

On Wed, Jan 05, 2005, Jeff Garzik <jgarzik@pobox.com> wrote:
> Johannes Erdfelt wrote:
> >@@ -259,7 +259,7 @@
> > #define RX_RING_SIZE	128 
> > #define MEDIA_MASK     31
> > 
> >-#define PKT_BUF_SZ		1536	/* Size of each temporary Rx buffer. 
> >*/
> >+#define PKT_BUF_SZ		1540	/* Size of each temporary Rx buffer. 
> >*/
> 
> This is the reason why the tulip "vlan" patch is continually rejected. 
> You shouldn't need to increase this constant, but rather follow the 
> other "large MTU" driver conversions.

Donald replied to my privately with a number of reasons why similar
patches have been rejected and this one of the same points brought up.

I just copied the 2.4 patch that worked so well for me, but I was
curious about this part of the patch as well.

I asked Donald this, but I guess I'll ask on the list here too. If the
point of PKT_BUF_SZ is to keep a consistent buffer size between drivers
(for performance reasons), why isn't this value defined in a standard
header?

> Donald Becker's tulip.c (on which the kernel tulip is based) supports 
> proper MTU changing: ftp://ftp.scyld.com/pub/network/

The problem isn't changing the MTU, it's that a full ethernet sized
packet along with the 802.1q tagging causes the size of the packet to
grow past the size the driver (and it looks like the chip) will allow.

The driver on Donald's site looks to have the same problem as the driver
in the kernel.

I'm still trying to find some specs on the tulip interface so I can
better understand the chip and the changes necessary to fix this
problem. Anyone have any pointers?

JE

  parent reply	other threads:[~2005-01-05 22:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-05 19:34 [RFC] tulip VLAN support Johannes Erdfelt
2005-01-05 22:12 ` Jeff Garzik
2005-01-05 22:17   ` Ben Greear
2005-01-05 22:31   ` Johannes Erdfelt [this message]
2005-01-05 22:45     ` Jeff Garzik
2005-01-05 22:56       ` Ben Greear

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=20050105223147.GE18847@sventech.com \
    --to=johannes@erdfelt.com \
    --cc=jgarzik@pobox.com \
    --cc=netdev@oss.sgi.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).