[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJXmdaq=Rc20QriH+QL8Nug_g4zRUO8BFw04pdAWQ6BEA@mail.gmail.com>
Date: Thu, 28 Jan 2016 05:13:02 -0800
From: Eric Dumazet <edumazet@...gle.com>
To: Mahesh Bandewar <mahesh@...dewar.net>
Cc: David Miller <davem@...emloft.net>,
Mahesh Bandewar <maheshb@...gle.com>,
Tim Hockin <thockin@...gle.com>,
netdev <netdev@...r.kernel.org>,
Eric Dumazet <eric.dumazet@...il.com>,
Tim Hockins <thockins@...gle.com>
Subject: Re: [PATCH next] ipvlan: inherit MTU from master device
On Wed, Jan 27, 2016 at 11:33 PM, Mahesh Bandewar <mahesh@...dewar.net> wrote:
> From: Mahesh Bandewar <maheshb@...gle.com>
>
> When we create IPvlan slave; we use ether_setup() and that
> sets up default MTU to 1500 while the master device may have
> lower / different MTU. Any subsequent changes to the masters'
> MTU are reflected into the slaves' MTU setting. However if those
> don't happen (most likely scenario), the slaves' MTU stays at
> 1500 which could be bad.
>
> This change adds code to inherit MTU from the master device
> instead of using the default value during the link initialization
> phase.
>
> Signed-off-by: Mahesh Bandewar <maheshb@...gle.com>
> CC: Eric Dumazet <eric.dumazet@...il.com>
> CC: Tim Hockins <thockins@...gle.com>
>
Acked-by: Eric Dumazet <edumazet@...gle.com>
Two points Mahesh :
1) ipvlan_adjust_mtu() could be static, it is only used from
drivers/net/ipvlan/ipvlan_main.c
2) mtu_adj does not seem to be used ?
Powered by blists - more mailing lists