netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: u9012063@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] erspan: auto detect truncated packets.
Date: Mon, 30 Apr 2018 11:44:10 -0400 (EDT)	[thread overview]
Message-ID: <20180430.114410.1341893433757519940.davem@davemloft.net> (raw)
In-Reply-To: <1524863792-66068-1-git-send-email-u9012063@gmail.com>

From: William Tu <u9012063@gmail.com>
Date: Fri, 27 Apr 2018 14:16:32 -0700

> Currently the truncated bit is set only when the mirrored packet
> is larger than mtu.  For certain cases, the packet might already
> been truncated before sending to the erspan tunnel.  In this case,
> the patch detect whether the IP header's total length is larger
> than the actual skb->len.  If true, this indicated that the
> mirrored packet is truncated and set the erspan truncate bit.
> 
> I tested the patch using bpf_skb_change_tail helper function to
> shrink the packet size and send to erspan tunnel.
> 
> Reported-by: Xiaoyan Jin <xiaoyanj@vmware.com>
> Signed-off-by: William Tu <u9012063@gmail.com>

Applied, thanks.

      reply	other threads:[~2018-04-30 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-27 21:16 [PATCH net-next] erspan: auto detect truncated packets William Tu
2018-04-30 15:44 ` David Miller [this message]

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=20180430.114410.1341893433757519940.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=u9012063@gmail.com \
    /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).