linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 8021q and change_mtu problem
@ 2005-01-28 14:29 Laurent Lagrange
  0 siblings, 0 replies; only message in thread
From: Laurent Lagrange @ 2005-01-28 14:29 UTC (permalink / raw)
  To: linuxppc-embedded


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-28 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28 14:29 8021q and change_mtu problem Laurent Lagrange

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