netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: William Tu <u9012063@gmail.com>
To: netdev@vger.kernel.org
Subject: [net-next 0/3] ip_gre: a bunch of fixes for mtu
Date: Mon,  9 Oct 2017 13:47:44 -0700	[thread overview]
Message-ID: <1507582067-36718-1-git-send-email-u9012063@gmail.com> (raw)

The first two patches are to fix some issues for mtu and needed_headroom length
calculation from the gre and erspan tunnel header.  The last path tries to avoid
arithmetic operation for every packet when checking for erspan truncate.

William Tu (3):
  ip_gre: fix mtu and headroom size
  ip_gre: fix erspan tunnel mtu calculation
  ip_gre: cache the device mtu hard_header_len calc

 include/net/erspan.h     |  1 +
 include/net/ip_tunnels.h |  1 +
 net/ipv4/ip_gre.c        | 23 +++++++++++------------
 net/ipv4/ip_tunnel.c     |  3 +++
 4 files changed, 16 insertions(+), 12 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-10-09 20:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 20:47 William Tu [this message]
2017-10-09 20:47 ` [net-next 1/3] ip_gre: fix mtu and headroom size William Tu
2017-10-09 20:47 ` [net-next 2/3] ip_gre: fix erspan tunnel mtu calculation William Tu
2017-10-10  5:27   ` Xin Long
2017-10-10 12:59     ` William Tu
2017-10-11 10:46       ` Xin Long
2017-10-09 20:47 ` [net-next 3/3] ip_gre: cache the device mtu hard_header_len calc William Tu
2017-10-11  9:54   ` Xin Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507582067-36718-1-git-send-email-u9012063@gmail.com \
    --to=u9012063@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).