From: Eric Dumazet <eric.dumazet@gmail.com>
To: madalin.bucur@freescale.com
Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet
Date: Wed, 10 Jun 2015 10:56:01 -0700 [thread overview]
Message-ID: <1433958961.27504.15.camel@edumazet-glaptop2.roam.corp.google.com> (raw)
In-Reply-To: <1430319405-31280-1-git-send-email-madalin.bucur@freescale.com>
On Wed, 2015-04-29 at 17:56 +0300, Madalin Bucur wrote:
> This introduces the Freescale Data Path Acceleration Architecture
> (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan,
> BMan, PAMU and FMan drivers to deliver Ethernet connectivity on
> the Freescale DPAA QorIQ platforms.
...
> + /* We're going to store the skb backpointer at the beginning
> + * of the data buffer, so we need a privately owned skb
> + */
> +
> + /* Code borrowed from skb_unshare(). */
> + if (skb_cloned(skb)) {
> + struct sk_buff *nskb = skb_copy(skb, GFP_ATOMIC);
> +
> + /* Finally, create a contig FD from this skb */
> + skb_to_contig_fd(priv, skb, &fd, countptr, &offset);
> +
> + kfree_skb(skb);
> + skb = nskb;
> + /* skb_copy() has now linearized the skbuff. */
> + }
> +
You know that TCP packets are clones, right ?
This code is killing performance.
TCP allows the headers part being modified by a driver if needed.
You should use skb_header_cloned() instead.
next prev parent reply other threads:[~2015-06-10 17:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 14:56 [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 03/10] dpaa_eth: add configurable bpool thresholds Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 04/10] dpaa_eth: add support for S/G frames Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 05/10] dpaa_eth: add driver's Tx queue selection mechanism Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 06/10] dpaa_eth: add ethtool functionality Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 07/10] dpaa_eth: add sysfs exports Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 08/10] dpaa_eth: add debugfs counters Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 09/10] dpaa_eth: add debugfs entries Madalin Bucur
2015-04-29 14:56 ` [RFC,v3 10/10] dpaa_eth: add trace points Madalin Bucur
2015-06-10 6:00 ` [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet Jianhua Xie
2015-06-10 7:38 ` Madalin-Cristian Bucur
2015-06-10 14:44 ` Eric Dumazet
2015-06-15 12:44 ` Madalin-Cristian Bucur
2015-06-10 17:56 ` Eric Dumazet [this message]
2015-06-15 13:40 ` Madalin-Cristian Bucur
2015-06-15 15:08 ` Eric Dumazet
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=1433958961.27504.15.camel@edumazet-glaptop2.roam.corp.google.com \
--to=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madalin.bucur@freescale.com \
--cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).