[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fd195e9f-e584-4546-ac29-86ae4995c6ff@linux.dev>
Date: Mon, 21 Jul 2025 12:43:57 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Nimrod Oren <noren@...dia.com>
Cc: netdev@...r.kernel.org, Mohsin Bashir <mohsin.bashr@...il.com>,
kuba@...nel.org, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, shuah@...nel.org, horms@...nel.org,
cratiu@...dia.com, cjubran@...dia.com, mbloch@...dia.com,
jdamato@...tly.com, gal@...dia.com, sdf@...ichev.me, ast@...nel.org,
daniel@...earbox.net, hawk@...nel.org, john.fastabend@...il.com,
nathan@...nel.org, nick.desaulniers+lkml@...il.com, morbo@...gle.com,
justinstitt@...gle.com, bpf@...r.kernel.org,
linux-kselftest@...r.kernel.org, llvm@...ts.linux.dev, tariqt@...dia.com,
thoiland@...hat.com, Joanne Koong <joannelkoong@...il.com>
Subject: Re: [PATCH net-next V6 2/5] selftests: drv-net: Test XDP_PASS/DROP
support
On 7/21/25 4:43 AM, Nimrod Oren wrote:
> To ensure correctness across all drivers, all direct accesses to packet
> data should use these safer helper functions instead:
> bpf_xdp_load_bytes() and bpf_xdp_store_bytes().
Not sure if the test will be run on the older kernel. fwiw, there is a
bpf_dynptr_slice_rdwr() kfunc which was added in commit 66e3a13e7c2c.
It uses bpf_xdp_pointer() underneath, so it can avoid a copy if the requested
data is contained in a single frag.
Powered by blists - more mailing lists