All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Du Fan <fengyuleidian0615@gmail.com>
Cc: Florian Westphal <fw@strlen.de>, Thomas Graf <tgraf@suug.ch>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Jesse Gross <jesse@nicira.com>, Flavio Leitner <fbl@redhat.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	pshelar@nicira.com, netdev <netdev@vger.kernel.org>,
	"dev@openvswitch.org" <dev@openvswitch.org>,
	"Du, Fan" <fan.du@intel.com>
Subject: Re: [Discussion] About over-MTU-sized skb in virtualized env
Date: Wed, 3 Dec 2014 11:50:46 +0100	[thread overview]
Message-ID: <20141203105046.GE16959@breakpoint.cc> (raw)
In-Reply-To: <547EB029.5010102@gmail.com>

Du Fan <fengyuleidian0615@gmail.com> wrote:
> Sorry for resend this mail, because my company email is rejected by netdev.
> 
> 
> Hi Florian
> 
>  214 static int ip_finish_output_gso(struct sk_buff *skb)
>  215 {
>  216     netdev_features_t features;
>  217     struct sk_buff *segs;
>  218     int ret = 0;
>  219
>  220     /* common case: locally created skb or seglen is <= mtu */
>  221     if (((IPCB(skb)->flags & IPSKB_FORWARDED) == 0) ||
>  222           skb_gso_network_seglen(skb) <= ip_skb_dst_mtu(skb))
>  223         return ip_finish_output2(skb);
> 
> Could you please state _concrete_ reason why locally created skb
> length is _always_ fitting into MTU size? or why we needs this
> checking.

We don't "need" this checking.  Its just to avoid skb_gso_network_seglen()
computation for the common (local-out) case.

Locally generated GSO packet is not supposed to exceed dst_mtu, as that
is the PMTU discovery start point in absence of lower/learned value.

  reply	other threads:[~2014-12-03 10:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03  6:39 [Discussion] About over-MTU-sized skb in virtualized env Du Fan
2014-12-03 10:50 ` Florian Westphal [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-03  5:40 Du, Fan

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=20141203105046.GE16959@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=davem@davemloft.net \
    --cc=dev@openvswitch.org \
    --cc=fan.du@intel.com \
    --cc=fbl@redhat.com \
    --cc=fengyuleidian0615@gmail.com \
    --cc=jesse@nicira.com \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pshelar@nicira.com \
    --cc=tgraf@suug.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.