From: "Laurent Lagrange" <lagrange@fr.oleane.com>
To: <linuxppc-embedded@ozlabs.org>
Subject: 8021q and change_mtu problem
Date: Fri, 28 Jan 2005 15:29:48 +0100 [thread overview]
Message-ID: <001901c50545$d4b17890$5201a8c0@GEG2400> (raw)
Hello,
I have tried to use the "change_mtu" function with a 8021q network device.
I have compare this function with an other one define for ethernet devices
in /drivers/net/net_init.c.
These functions always return -EINVAL when the new mtu value is invalid.
But for a valid mtu value the first one returns the new value and the second
one returns 0.
I use a linux 2.6.9 kernel from kernel.org.
I have tried this very simple patch and the function works fine.
--- net/8021q/vlan_dev.c Fri Jan 28 15:07:58 2005
+++ net/8021q/vlan_dev.c Fri Jan 28 15:12:12 2005
@@ -527,7 +527,7 @@
dev->mtu = new_mtu;
- return new_mtu;
+ return 0;
Laurent
reply other threads:[~2005-01-28 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='001901c50545$d4b17890$5201a8c0@GEG2400' \
--to=lagrange@fr.oleane.com \
--cc=linuxppc-embedded@ozlabs.org \
/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).