public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Stockhausen <markus.stockhausen-Mmb7MZpHnFY@public.gmane.org>
To: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [RFC/PATCH v2] IPoIB: Leave space in skb linear buffer for IP headers
Date: Mon, 08 Apr 2013 21:03:16 +0200	[thread overview]
Message-ID: <CD88DFB5.577C%markus.stockhausen@gmx.de> (raw)
In-Reply-To: <CAG4TOxMTDM9h8GWoSVj0EB=BLz41muYrGWgfEC0Aps3oCG98pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



Am 08.04.13 18:50 schrieb "Roland Dreier" unter <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>:

>On Mon, Apr 8, 2013 at 9:44 AM, Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:
>> Am empty page in the frag list ? You mean a frag with a zero length ?
>
>Yep... the code would do
>
>    skb_fill_page_desc(skb, 0, page, 0, PAGE_SIZE);
>
>but then later on it did the equivalent of
>
>    skb_frag_size_set(frag, 0);
>    skb->truesize += PAGE_SIZE;
>
>and somehow when data is flowing both directions with small packets,
>that would lead the RX-side handling to return corrupt data to
>userspace.
>
>Not sure if it's worth figuring this out entirely ... the more
>efficient way for ipoib to do things is to reuse that page for next
>time, not pass it up the stack unused.
>
> - R.

First I thought perfect memory allocation inside ipoib_alloc_rx_skb()
could be realized by passing the received packet size from function
ipoib_ib_handle_rx_wc(). But I'm unable to estimate the requirements
of the similar call inside ipoib_ib_post_receives().

Nevertheless thank you very much for spending time on this.

Markus


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-04-08 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 21:12 [RFC/PATCH v2] IPoIB: Leave space in skb linear buffer for IP headers Roland Dreier
     [not found] ` <1365109940-22916-1-git-send-email-roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-05 18:42   ` Markus Stockhausen
     [not found]     ` <CD84E1B9.5721%markus.stockhausen-Mmb7MZpHnFY@public.gmane.org>
2013-04-05 20:44       ` Roland Dreier
     [not found]         ` <CAL1RGDWrNpExCzMSORfF74pp4EN_gi==O9nEspU-gwx_z6dNCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-08 15:59           ` Roland Dreier
     [not found]             ` <CANn89iL358oFA8iGbYZLA30us-4BmvZauRr+_OnJJ2FxqpGF7Q@mail.gmail.com>
     [not found]               ` <CANn89iL358oFA8iGbYZLA30us-4BmvZauRr+_OnJJ2FxqpGF7Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-08 16:50                 ` Roland Dreier
     [not found]                   ` <CAG4TOxMTDM9h8GWoSVj0EB=BLz41muYrGWgfEC0Aps3oCG98pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-08 19:03                     ` Markus Stockhausen [this message]
     [not found]                       ` <CD88DFB5.577C%markus.stockhausen-Mmb7MZpHnFY@public.gmane.org>
2013-04-08 22:04                         ` Roland Dreier

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=CD88DFB5.577C%markus.stockhausen@gmx.de \
    --to=markus.stockhausen-mmb7mzphnfy@public.gmane.org \
    --cc=edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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