Skip to content

Commit 6bc3a54

Browse files
committed
Revert "ip6_vti: adjust vti mtu according to mtu of lower device"
This reverts commit e6cfc52 which is commit 53c81e9 upstream. Ben writes that there are a number of follow-on patches needed to fix this up, but they get complex to backport, and some custom fixes are needed, so let's just revert this and wait for a "real" set of patches to resolve this to be submitted if it is really needed. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Cc: Petr Vorel <pvorel@suse.cz> Cc: Alexey Kodanev <alexey.kodanev@oracle.com> Cc: David S. Miller <davem@davemloft.net> Cc: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cfbed9b commit 6bc3a54

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎net/ipv6/ip6_vti.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ static void vti6_link_config(struct ip6_tnl *t)
626626
{
627627
struct net_device *dev = t->dev;
628628
struct __ip6_tnl_parm *p = &t->parms;
629-
struct net_device *tdev = NULL;
630629

631630
memcpy(dev->dev_addr, &p->laddr, sizeof(struct in6_addr));
632631
memcpy(dev->broadcast, &p->raddr, sizeof(struct in6_addr));
@@ -639,25 +638,6 @@ static void vti6_link_config(struct ip6_tnl *t)
639638
dev->flags |= IFF_POINTOPOINT;
640639
else
641640
dev->flags &= ~IFF_POINTOPOINT;
642-
643-
if (p->flags & IP6_TNL_F_CAP_XMIT) {
644-
int strict = (ipv6_addr_type(&p->raddr) &
645-
(IPV6_ADDR_MULTICAST | IPV6_ADDR_LINKLOCAL));
646-
struct rt6_info *rt = rt6_lookup(t->net,
647-
&p->raddr, &p->laddr,
648-
p->link, strict);
649-
650-
if (rt)
651-
tdev = rt->dst.dev;
652-
ip6_rt_put(rt);
653-
}
654-
655-
if (!tdev && p->link)
656-
tdev = __dev_get_by_index(t->net, p->link);
657-
658-
if (tdev)
659-
dev->mtu = max_t(int, tdev->mtu - dev->hard_header_len,
660-
IPV6_MIN_MTU);
661641
}
662642

663643
/**

0 commit comments

Comments
 (0)