From: Vladimir Oltean <olteanv@gmail.com>
To: Julian Wiedmann <jwi@linux.ibm.com>
Cc: Claudiu Manoil <claudiu.manoil@nxp.com>,
netdev@vger.kernel.org, "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
james.jurack@ametek.com
Subject: Re: [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP
Date: Tue, 3 Nov 2020 19:18:49 +0200 [thread overview]
Message-ID: <20201103171849.vthpu7beenzeayrs@skbuf> (raw)
In-Reply-To: <2b0606ef-71d2-cc85-98db-1e16cc63c9d2@linux.ibm.com>
On Tue, Nov 03, 2020 at 06:36:30PM +0200, Julian Wiedmann wrote:
> Given the various skb modifications in its xmit path, I wonder why
> gianfar doesn't clear IFF_TX_SKB_SHARING.
Thanks for the hint Julian :) I'll try to see if it makes any
difference.
Just a wild guess, but maybe because the gianfar maintainer (or me) had
no idea about the existence of the flag, and because IFF_SKB_TX_SHARED
was added _after_ gianfar was already a thing (which it was since the
beginning of git), which is insane to begin with?
commit d8873315065f1f527c7c380402cf59b1e1d0ae36
Author: Neil Horman <nhorman@tuxdriver.com>
Date: Tue Jul 26 06:05:37 2011 +0000
net: add IFF_SKB_TX_SHARED flag to priv_flags
Pktgen attempts to transmit shared skbs to net devices, which can't be used by
some drivers as they keep state information in skbs. This patch adds a flag
marking drivers as being able to handle shared skbs in their tx path. Drivers
are defaulted to being unable to do so, but calling ether_setup enables this
flag, as 90% of the drivers calling ether_setup touch real hardware and can
handle shared skbs. A subsequent patch will audit drivers to ensure that the
flag is set properly
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Jiri Pirko <jpirko@redhat.com>
CC: Robert Olsson <robert.olsson@its.uu.se>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Alexey Dobriyan <adobriyan@gmail.com>
CC: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
next prev parent reply other threads:[~2020-11-03 17:18 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 13:53 PROBLEM: Crash when timestamping outgoing PTP packets under heavy network load (ppc, gianfar) James Jurack
2020-10-20 17:36 ` [PATCH net] gianfar: Account for Tx PTP timestamp in the skb headroom Claudiu Manoil
2020-10-21 17:59 ` Jakub Kicinski
2020-10-22 12:09 ` Claudiu Manoil
2020-10-23 2:54 ` Jakub Kicinski
2020-10-23 11:37 ` Claudiu Manoil
2020-10-29 8:10 ` [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP Claudiu Manoil
2020-10-29 8:10 ` [PATCH net v2 2/2] gianfar: Account for Tx PTP timestamp in the skb headroom Claudiu Manoil
2020-10-30 16:41 ` [PATCH net v2 1/2] gianfar: Replace skb_realloc_headroom with skb_cow_head for PTP Jakub Kicinski
2020-11-03 16:13 ` Vladimir Oltean
2020-11-03 16:30 ` Jakub Kicinski
2020-11-03 17:18 ` Claudiu Manoil
2020-11-03 17:30 ` Vladimir Oltean
2020-11-03 17:36 ` Jakub Kicinski
2020-11-03 17:39 ` Jakub Kicinski
2020-11-03 17:51 ` Vladimir Oltean
2020-11-03 17:41 ` Claudiu Manoil
2020-11-03 17:49 ` Vladimir Oltean
2020-11-03 18:16 ` Eric Dumazet
2020-11-04 16:45 ` Claudiu Manoil
2020-11-03 18:16 ` Vladimir Oltean
2020-11-03 16:36 ` Julian Wiedmann
2020-11-03 17:08 ` Claudiu Manoil
2020-11-03 17:12 ` Jakub Kicinski
2020-11-03 17:24 ` Vladimir Oltean
2020-11-03 17:38 ` Vladimir Oltean
2020-11-03 17:18 ` Vladimir Oltean [this message]
2020-11-03 17:27 ` Vladimir Oltean
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=20201103171849.vthpu7beenzeayrs@skbuf \
--to=olteanv@gmail.com \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=james.jurack@ametek.com \
--cc=jwi@linux.ibm.com \
--cc=kuba@kernel.org \
--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).