Re: [net-next 3/3] ip_gre: cache the device mtu hard_header_len calc

2017-10-11 Thread Xin Long
On Tue, Oct 10, 2017 at 4:47 AM, William Tu wrote: > The patch introduces ip_tunnel->ether_mtu fields to cache the value of > dev->mtu + dev->hard_header_len. This avoids the arithmetic operation > on every packet. > > Signed-off-by: William Tu > Cc: David Laight > --- > include/net/ip_tunnels

[net-next 3/3] ip_gre: cache the device mtu hard_header_len calc

2017-10-09 Thread William Tu
The patch introduces ip_tunnel->ether_mtu fields to cache the value of dev->mtu + dev->hard_header_len. This avoids the arithmetic operation on every packet. Signed-off-by: William Tu Cc: David Laight --- include/net/ip_tunnels.h | 1 + net/ipv4/ip_gre.c| 8 net/ipv4/ip_tunnel