From: Ian Campbell <Ian.Campbell@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: <netdev@vger.kernel.org>, <xen-devel@lists.xenproject.org>,
Wei Liu <wei.liu2@citrix.com>,
Malcolm Crossley <malcolm.crossley@citrix.com>
Subject: Re: [PATCHv2 net-next] xen-netback: remove unconditional __pskb_pull_tail() in guest Tx path
Date: Wed, 5 Nov 2014 10:57:42 +0000 [thread overview]
Message-ID: <1415185062.11486.85.camel@citrix.com> (raw)
In-Reply-To: <1415184622-19421-1-git-send-email-david.vrabel@citrix.com>
On Wed, 2014-11-05 at 10:50 +0000, David Vrabel wrote:
> From: Malcolm Crossley <malcolm.crossley@citrix.com>
>
> Unconditionally pulling 128 bytes into the linear area is not required
> for:
>
> - security: Every protocol demux starts with pskb_may_pull() to pull
> frag data into the linear area, if necessary, before looking at
> headers.
>
> - performance: Netback has already grant copied up-to 128 bytes from
> the first slot of a packet into the linear area. The first slot
> normally contain all the IPv4/IPv6 and TCP/UDP headers.
Thanks for adding these.
> The unconditional pull would often copy frag data unnecessarily. This
> is a performance problem when running on a version of Xen where grant
> unmap avoids TLB flushes for pages which are not accessed. TLB
> flushes can now be avoided for > 99% of unmaps (it was 0% before).
>
> Grant unmap TLB flush avoidance will be available in a future version
> of Xen (probably 4.6).
>
> Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
next prev parent reply other threads:[~2014-11-05 10:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 10:50 [PATCHv2 net-next] xen-netback: remove unconditional __pskb_pull_tail() in guest Tx path David Vrabel
2014-11-05 10:57 ` Ian Campbell
2014-11-05 10:57 ` Ian Campbell [this message]
2014-11-05 10:58 ` Ian Campbell
2014-11-05 11:01 ` David Vrabel
2014-11-05 10:59 ` Ian Campbell
2014-11-05 11:17 ` Paul Durrant
2014-11-05 11:20 ` Ian Campbell
2014-11-05 11:24 ` Paul Durrant
2014-11-05 18:07 ` Konrad Rzeszutek Wilk
2014-11-05 19:02 ` annie li
2014-11-06 9:52 ` Paul Durrant
2014-11-06 19:40 ` David Miller
2014-11-06 19:40 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2014-11-05 10:50 David Vrabel
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=1415185062.11486.85.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=malcolm.crossley@citrix.com \
--cc=netdev@vger.kernel.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 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.