From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:46957 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbeB0LTu (ORCPT ); Tue, 27 Feb 2018 06:19:50 -0500 Received: by mail-pf0-f193.google.com with SMTP id z10so3474485pfh.13 for ; Tue, 27 Feb 2018 03:19:50 -0800 (PST) From: Xin Long To: network dev Cc: davem@davemloft.net Subject: [PATCH net 0/3] net: fix IFLA_MTU ignored on NEWLINK for some ip and ipv6 tunnels Date: Tue, 27 Feb 2018 19:19:38 +0800 Message-Id: Sender: netdev-owner@vger.kernel.org List-ID: The fix for ip_gre follows the way other ip tunnels do: not to set mtu in ndo_init, as ip_tunnel_newlink will take care of it properly. The fix for ip6_tunnel and sit follows the way ipv6 tunenls do: to set mtu again according to IFLA_MTU after, as all bind_dev are called in ndo_init where it can't get the tb[IFLA_MTU]. Xin Long (3): ip_gre: fix IFLA_MTU ignored on NEWLINK ip6_tunnel: fix IFLA_MTU ignored on NEWLINK sit: fix IFLA_MTU ignored on NEWLINK net/ipv4/ip_gre.c | 5 ----- net/ipv6/ip6_tunnel.c | 12 ++++++++---- net/ipv6/sit.c | 7 +++++++ 3 files changed, 15 insertions(+), 9 deletions(-) -- 2.1.0