netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] IP_MAX_MTU value
@ 2012-12-21  6:47 Eric Dumazet
  2012-12-21  7:08 ` Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Dumazet @ 2012-12-21  6:47 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Rick Jones

Hi David

We have the following definition in net/ipv4/route.c

#define IP_MAX_MTU   0xFFF0

This means that "netperf -t UDP_STREAM", using UDP messages of 65507
bytes, are fragmented on loopback interface (while its MTU is now 65536
and should allow those UDP messages being sent without fragments)

I guess Rick chose 65507 bytes in netperf because it was related to the
max IPv4 datagram length :

65507 + 28 = 65535

Changing IP_MAX_MTU from 0xFFF0 to 0x10000 seems safe [1], but I might
miss something really obvious ?

It might be because in old days we reserved 16 bytes for the ethernet
header, and we wanted to avoid kmalloc() round-up to kmalloc-131072
slab ?

If so, we certainly can limit skb->head to 32 or 64 KB and complete with
page fragments the remaining space.

Thanks

[1] performance increase is ~50% 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-22  0:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21  6:47 [RFC] IP_MAX_MTU value Eric Dumazet
2012-12-21  7:08 ` Eric Dumazet
2012-12-21 18:19 ` Rick Jones
2012-12-21 18:34   ` Eric Dumazet
2012-12-21 18:50     ` Rick Jones
2012-12-21 18:54       ` Eric Dumazet
2012-12-21 19:59 ` David Miller
2012-12-21 23:45   ` Alexey Kuznetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).