]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[PPPOE]: Advertise PPPoE MTU
authorMichal Ostrowski <mostrows@earthlink.net>
Wed, 27 Sep 2006 23:11:25 +0000 (16:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:44 +0000 (18:01 -0700)
PPPoE must advertise the underlying device's MTU via the ppp channel
descriptor structure, as multilink functionality depends on it.

Signed-off-by: Michal Ostrowski <mostrows@earthlink.net>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppoe.c

index 5666ed998142475420fbd3f0a5e220a98f1afb6e..0adee733b76121126c4cbfcf0cbed8f9aadbc087 100644 (file)
@@ -600,6 +600,7 @@ static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr,
                po->chan.hdrlen = (sizeof(struct pppoe_hdr) +
                                   dev->hard_header_len);
 
+               po->chan.mtu = dev->mtu - sizeof(struct pppoe_hdr);
                po->chan.private = sk;
                po->chan.ops = &pppoe_chan_ops;