summaryrefslogtreecommitdiff
authorStephen Suryaputra <ssuryaextr@gmail.com>2019-05-06 19:00:01 (GMT)
committer Greg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-16 17:43:46 (GMT)
commit2854d4536dea421c6badce8a6c1f04f96d1b97c5 (patch)
treea2faba4d8953d779e85c866288d4ecc9bfdc92ee
parentd8209c10a3e1e59b93af370acf68d395253e413c (diff)
downloadcommon-2854d4536dea421c6badce8a6c1f04f96d1b97c5.zip
common-2854d4536dea421c6badce8a6c1f04f96d1b97c5.tar.gz
common-2854d4536dea421c6badce8a6c1f04f96d1b97c5.tar.bz2
vrf: sit mtu should not be updated when vrf netdev is the link
[ Upstream commit ff6ab32bd4e073976e4d8797b4d514a172cfe6cb ] 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 <ssuryaextr@gmail.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat
-rw-r--r--net/ipv6/sit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index be74eee..47ca2a2 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1069,7 +1069,7 @@ static void ipip6_tunnel_bind_dev(struct net_device *dev)
if (!tdev && tunnel->parms.link)
tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
- if (tdev) {
+ if (tdev && !netif_is_l3_master(tdev)) {
int t_hlen = tunnel->hlen + sizeof(struct iphdr);
dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr);