netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow changing device gso maximums
@ 2017-12-06  1:14 Solio Sarabia
  2017-12-06  1:14 ` [PATCH 1/2] rtnetlink: allow GSO maximums to be passed to device Solio Sarabia
  2017-12-06  1:14 ` [PATCH 2/2] veth: allow configuring GSO maximums Solio Sarabia
  0 siblings, 2 replies; 5+ messages in thread
From: Solio Sarabia @ 2017-12-06  1:14 UTC (permalink / raw)
  To: netdev, davem, stephen
  Cc: eric.dumazet, dsahern, kys, shiny.sebastian, solio.sarabia

Docker uses bridge/veth for its bridged network. veth sends tcp packets
as big as 65536 (its default gso value), even when lower physical or
synthetic devices expose a lower limit. This causes tcp fragmentation in
the host, spinning more cpu cycles.

The proposed solution is to allow user to tune gso settings, via iproute
utils for example. Note: this enables changing gso for all interfaces,
not limited to veth only.

This series rebases Stephen's original patches [1]. It also fixes a
minor issue when validating maximum gso_max_size, which can be in the
range [0,65536]. Changes are validated with and without docker use
cases.

[1] https://marc.info/?l=linux-netdev&m=151217101428494&w=2

Stephen Hemminger (2):
  rtnetlink: allow GSO maximums to be passed to device
  veth: allow configuring GSO maximums

 drivers/net/veth.c   | 20 ++++++++++++++++++++
 net/core/rtnetlink.c | 30 ++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

-- 
2.7.4

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

end of thread, other threads:[~2017-12-06  1:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06  1:14 [PATCH 0/2] Allow changing device gso maximums Solio Sarabia
2017-12-06  1:14 ` [PATCH 1/2] rtnetlink: allow GSO maximums to be passed to device Solio Sarabia
2017-12-06  1:14 ` [PATCH 2/2] veth: allow configuring GSO maximums Solio Sarabia
2017-12-06  1:25   ` Stephen Hemminger
2017-12-06  1:50     ` Solio Sarabia

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).