From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Eric Dumazet <edumazet@google.com>
Cc: "Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Lorenzo Bianconi" <lorenzo@kernel.org>,
"Daniel Xu" <dxu@dxuuu.xyz>,
"Alexei Starovoitov" <ast@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Andrii Nakryiko" <andrii@kernel.org>,
"John Fastabend" <john.fastabend@gmail.com>,
"Toke Høiland-Jørgensen" <toke@kernel.org>,
"Jesper Dangaard Brouer" <hawk@kernel.org>,
"Martin KaFai Lau" <martin.lau@linux.dev>,
netdev@vger.kernel.org, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v4 0/8] bpf: cpumap: enable GRO for XDP_PASS frames
Date: Mon, 10 Feb 2025 16:31:52 +0100 [thread overview]
Message-ID: <7003bc18-bbff-4edd-9db5-dd1c17a88cc0@intel.com> (raw)
In-Reply-To: <CANn89iLpDW5GK5WJcKezFY17hENaC2EeUW7BkkbJZuzJc5r5bw@mail.gmail.com>
From: Eric Dumazet <edumazet@google.com>
Date: Mon, 10 Feb 2025 16:31:22 +0100
> On Mon, Feb 10, 2025 at 3:10 PM Alexander Lobakin
> <aleksander.lobakin@intel.com> wrote:
>>
>> From: Alexander Lobakin <aleksander.lobakin@intel.com>
>> Date: Wed, 5 Feb 2025 17:36:01 +0100
>>
>>> Several months ago, I had been looking through my old XDP hints tree[0]
>>> to check whether some patches not directly related to hints can be sent
>>> standalone. Roughly at the same time, Daniel appeared and asked[1] about
>>> GRO for cpumap from that tree.
>>
>> I see "Changes requested" on Patchwork. Which ones?
>>
>> 1/8 regarding gro_node? Nobody proposed a solution which would be as
>> efficient, but avoid using struct_group(), I don't see such as well.
>> I explain in the commitmsgs and cover letter everything. Jakub gave me
>> Acked-by on struct_group() in the v3 thread.
>
> One of the points of your nice series is to dissociate GRO from NAPI,
> so defining gro_node inside napi_struct is not appealing.
>
> I suggested not putting napi_id in the new structure.
>
> If you need to cache a copy in it for "performance/whatever reason",
> you can cache napi_id, because napi->napi_id is only set once
> in __napi_hash_add_with_id()
>
> gro->napi_id_cache = napi->napi_id;
This was rejected by Kuba in v2.
He didn't like to have napi_id two times within napi_struct (one inside
gro_node, one outside).
Thanks,
Olek
next prev parent reply other threads:[~2025-02-10 15:36 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 16:36 [PATCH net-next v4 0/8] bpf: cpumap: enable GRO for XDP_PASS frames Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 1/8] net: gro: decouple GRO from the NAPI layer Alexander Lobakin
2025-02-05 17:48 ` Eric Dumazet
2025-02-06 2:56 ` Jakub Kicinski
2025-02-06 12:12 ` Alexander Lobakin
2025-02-06 18:35 ` Eric Dumazet
2025-02-07 11:56 ` Alexander Lobakin
2025-02-07 14:21 ` Przemek Kitszel
2025-02-07 14:55 ` Eric Dumazet
2025-02-07 15:18 ` Alexander Lobakin
2025-02-07 15:28 ` Eric Dumazet
2025-02-07 15:43 ` Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 2/8] net: gro: expose GRO init/cleanup to use outside of NAPI Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 3/8] bpf: cpumap: switch to GRO from netif_receive_skb_list() Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 4/8] bpf: cpumap: reuse skb array instead of a linked list to chain skbs Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 5/8] net: skbuff: introduce napi_skb_cache_get_bulk() Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 6/8] bpf: cpumap: switch to napi_skb_cache_get_bulk() Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 7/8] veth: use napi_skb_cache_get_bulk() instead of xdp_alloc_skb_bulk() Alexander Lobakin
2025-02-05 16:36 ` [PATCH net-next v4 8/8] xdp: remove xdp_alloc_skb_bulk() Alexander Lobakin
2025-02-10 14:05 ` [PATCH net-next v4 0/8] bpf: cpumap: enable GRO for XDP_PASS frames Alexander Lobakin
2025-02-10 15:31 ` Eric Dumazet
2025-02-10 15:31 ` Alexander Lobakin [this message]
2025-02-11 0:35 ` Jakub Kicinski
2025-02-12 14:22 ` Alexander Lobakin
2025-02-12 15:55 ` Alexander Lobakin
2025-02-12 18:29 ` Jakub Kicinski
2025-02-14 15:43 ` Alexander Lobakin
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=7003bc18-bbff-4edd-9db5-dd1c17a88cc0@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dxu@dxuuu.xyz \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=toke@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 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.