From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
To: Yunsheng Lin <linyunsheng@huawei.com>
Cc: Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
Lorenzo Bianconi <lorenzo@kernel.org>,
netdev@vger.kernel.org, bpf@vger.kernel.org, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
hawk@kernel.org, john.fastabend@gmail.com, ast@kernel.org,
daniel@iogearbox.net
Subject: Re: [PATCH v2 net-next 1/2] net: veth: add page_pool for page recycling
Date: Tue, 25 Apr 2023 16:13:07 +0200 [thread overview]
Message-ID: <ZEff8wJmZ3konvbV@lore-desk> (raw)
In-Reply-To: <99890c72-eb61-e032-944a-6671d6494c23@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
> On 2023/4/24 21:10, Maciej Fijalkowski wrote:
> >>> There was a discussion in the past to reduce XDP_PACKET_HEADROOM to 192B but
> >>> this is not merged yet and it is not related to this series. We can address
> >>> your comments in a follow-up patch when XDP_PACKET_HEADROOM series is merged.
> >
> > Intel drivers still work just fine at 192 headroom and split the page but
> > it makes it problematic for BIG TCP where MAX_SKB_FRAGS from shinfo needs
>
> I am not sure why we are not enabling skb_shinfo(skb)->frag_list to support
> BIG TCP instead of increasing MAX_SKB_FRAGS, perhaps there was some disscution
> about this in the past I am not aware of?
>
> > to be increased. So it's the tailroom that becomes the bottleneck, not the
> > headroom. I believe at some point we will convert our drivers to page_pool
> > with full 4k page dedicated for a single frame.
>
> Can we use header splitting to ensure there is enough tailroom for
> napi_build_skb() or xdp_frame with shinfo?
>
since veth_convert_skb_to_xdp_buff() runs in veth_poll() I think we can use
napi_build_skb(). I tested it and we get an improvement (9.65Gbps vs 9.2Gbps
for 1500B frames).
Regards,
Lorenzo
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-04-25 14:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 18:54 [PATCH v2 net-next 0/2] add page_pool support for page recycling in veth driver Lorenzo Bianconi
2023-04-22 18:54 ` [PATCH v2 net-next 1/2] net: veth: add page_pool for page recycling Lorenzo Bianconi
2023-04-23 12:17 ` Yunsheng Lin
2023-04-23 14:20 ` Lorenzo Bianconi
2023-04-24 2:29 ` Yunsheng Lin
2023-04-24 9:17 ` Lorenzo Bianconi
2023-04-24 11:58 ` Yunsheng Lin
2023-04-24 13:04 ` Jesper Dangaard Brouer
2023-04-24 13:06 ` Lorenzo Bianconi
2023-04-24 13:10 ` Maciej Fijalkowski
2023-04-24 13:41 ` Lorenzo Bianconi
2023-04-25 11:19 ` Yunsheng Lin
2023-04-25 14:13 ` Lorenzo Bianconi [this message]
2023-04-22 18:54 ` [PATCH v2 net-next 2/2] net: veth: add page_pool stats Lorenzo Bianconi
2023-04-25 1:10 ` [PATCH v2 net-next 0/2] add page_pool support for page recycling in veth driver patchwork-bot+netdevbpf
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=ZEff8wJmZ3konvbV@lore-desk \
--to=lorenzo.bianconi@redhat.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linyunsheng@huawei.com \
--cc=lorenzo@kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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).