Skip to content

Commit ff6ab32

Browse files
ssuryaextrdavem330
authored andcommitted
vrf: sit mtu should not be updated when vrf netdev is the link
VRF netdev mtu isn't typically set and have an mtu of 65536. When the link of a tunnel is set, the tunnel mtu is changed from 1480 to the link mtu minus tunnel header. In the case of VRF netdev is the link, then the tunnel mtu becomes 65516. So, fix it by not setting the tunnel mtu in this case. Signed-off-by: Stephen Suryaputra <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 68be930 commit ff6ab32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/sit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ static void ipip6_tunnel_bind_dev(struct net_device *dev)
10841084
if (!tdev && tunnel->parms.link)
10851085
tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
10861086

1087-
if (tdev) {
1087+
if (tdev && !netif_is_l3_master(tdev)) {
10881088
int t_hlen = tunnel->hlen + sizeof(struct iphdr);
10891089

10901090
dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr);

0 commit comments

Comments
 (0)