From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>,
Netdev <netdev@vger.kernel.org>,
Eric Dumazet <eric.dumazet@gmail.com>,
Alexander Duyck <alexander.h.duyck@intel.com>
Subject: Re: [PATCH net-next v1] gso: Support partial splitting at the frag_list pointer
Date: Thu, 25 Aug 2016 09:17:18 -0300 [thread overview]
Message-ID: <20160825121718.GA13235@localhost.localdomain> (raw)
In-Reply-To: <20160825073126.GQ3735@gauss.secunet.com>
On Thu, Aug 25, 2016 at 09:31:26AM +0200, Steffen Klassert wrote:
> On Wed, Aug 24, 2016 at 02:25:29PM -0300, Marcelo Ricardo Leitner wrote:
> > Em 24-08-2016 13:27, Alexander Duyck escreveu:
> > >
> > >I'm adding Marcelo as he could probably explain the GSO_BY_FRAGS
> > >functionality better than I could since he is the original author.
> > >
> > >If I recall GSO_BY_FRAGS does something similar to what you are doing,
> > >although I believe it doesn't carry any data in the first buffer other
> > >than just a header. I believe the idea behind GSO_BY_FRAGS was to
> > >allow for segmenting a frame at the frag_list level instead of having
> > >it done just based on MSS. That was the only reason why I brought it
> > >up.
> > >
> >
> > That's exactly it.
> >
> > On this no data in the first buffer limitation, we probably can
> > allow it have some data in there. It was done this way just because
> > sctp is using skb_gro_receive() to build such skb and this was the
> > way I found to get such frag_list skb generated by it, thus
> > preserving frame boundaries.
>
> Just to understand what you are doing. You generate MTU sized linear
> buffers in sctp and then, skb_gro_receive() chains up these buffers
> at the frag_list pointer. skb_gro_receive() does this because
> skb_gro_offset is null and skb->head_frag is not set in your case.
>
> At segmentation, you just need to split at the frag_list pointer
> because you know that the chained buffers fit the MTU, right?
>
Correct. Just note that these buffers fit the MTU, but not necessary
uses all of it. That is main point in here, variable segmentation size.
next prev parent reply other threads:[~2016-08-25 12:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-23 5:20 [PATCH net-next v1] gso: Support partial splitting at the frag_list pointer Steffen Klassert
2016-08-23 14:47 ` Alexander Duyck
2016-08-24 9:32 ` Steffen Klassert
2016-08-24 16:27 ` Alexander Duyck
2016-08-24 17:25 ` Marcelo Ricardo Leitner
2016-08-25 7:31 ` Steffen Klassert
2016-08-25 12:17 ` Marcelo Ricardo Leitner [this message]
2016-08-29 12:02 ` Steffen Klassert
2016-08-25 11:00 ` Steffen Klassert
2016-08-25 12:38 ` Marcelo Ricardo Leitner
2016-08-25 16:02 ` Alexander Duyck
2016-08-29 12:00 ` Steffen Klassert
2016-08-26 20:36 ` Shmulik Ladkani
2016-08-26 20:45 ` Alexander Duyck
2016-08-27 7:47 ` Shmulik Ladkani
2016-08-26 20:59 ` Alexander Duyck
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=20160825121718.GA13235@localhost.localdomain \
--to=marcelo.leitner@gmail.com \
--cc=alexander.duyck@gmail.com \
--cc=alexander.h.duyck@intel.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.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).