From: Ben Greear <greearb@candelatech.com>
To: Rask Ingemann Lambertsen <rask@sygehus.dk>
Cc: Jeff Garzik <jgarzik@pobox.com>, netdev@oss.sgi.com
Subject: Re: [EXPERIMENTAL PATCH] 2.4 tulip jumbo frames
Date: Tue, 09 Dec 2003 14:38:01 -0800 [thread overview]
Message-ID: <3FD64EC9.6010203@candelatech.com> (raw)
In-Reply-To: <20031209223214.A1855@sygehus.dk>
Rask Ingemann Lambertsen wrote:
> What do you propose? Do we need something like
>
> int vlan_adjust_mtu (int mtu)
> {
> #ifdef CONFIG_VLANN_8021Q
> return (mtu - VLAN_HLEN);
> #else
> return (mtu);
> #endif
> }
>
> and
>
> int foobar_change_mtu (struct net_device *dev, int mtu)
> {
> mtu = vlan_adjust_mtu (mtu);
> /* check hardware limits. */
> ...
> dev->mtu = mtu;
> return (0);
> }
>
> ? Ben, this would also keep you happy, right?
I was thinking the check could be made run-time, but in reality, this is
a very minor detail. It may be better to just hard-code it like you
had it originally. I don't like the patch above, I'd rather see the
#ifdef when checking for the maximum hardware limit, if anywhere.
Thanks,
Ben
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2003-12-09 22:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-09 15:06 [EXPERIMENTAL PATCH] 2.4 tulip jumbo frames Rask Ingemann Lambertsen
2003-12-09 16:45 ` Jeff Garzik
2003-12-09 21:32 ` Rask Ingemann Lambertsen
2003-12-09 22:38 ` Ben Greear [this message]
2003-12-09 23:40 ` Rask Ingemann Lambertsen
2003-12-19 14:32 ` Rask Ingemann Lambertsen
2003-12-20 6:22 ` Ben Greear
2003-12-13 17:29 ` Rask Ingemann Lambertsen
2004-05-27 19:29 ` Ben Greear
2003-12-09 17:28 ` 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=3FD64EC9.6010203@candelatech.com \
--to=greearb@candelatech.com \
--cc=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
--cc=rask@sygehus.dk \
/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).