From: Martin KaFai Lau <martin.lau@linux•dev>
To: Nimrod Oren <noren@nvidia•com>
Cc: netdev@vger•kernel.org, Mohsin Bashir <mohsin.bashr@gmail•com>,
kuba@kernel•org, andrew+netdev@lunn•ch, davem@davemloft•net,
edumazet@google•com, pabeni@redhat•com, shuah@kernel•org,
horms@kernel•org, cratiu@nvidia•com, cjubran@nvidia•com,
mbloch@nvidia•com, jdamato@fastly•com, gal@nvidia•com,
sdf@fomichev•me, ast@kernel•org, daniel@iogearbox•net,
hawk@kernel•org, john.fastabend@gmail•com, nathan@kernel•org,
nick.desaulniers+lkml@gmail•com, morbo@google•com,
justinstitt@google•com, bpf@vger•kernel.org,
linux-kselftest@vger•kernel.org, llvm@lists•linux.dev,
tariqt@nvidia•com, thoiland@redhat•com,
Joanne Koong <joannelkoong@gmail•com>
Subject: Re: [PATCH net-next V6 2/5] selftests: drv-net: Test XDP_PASS/DROP support
Date: Mon, 21 Jul 2025 12:43:57 -0700 [thread overview]
Message-ID: <fd195e9f-e584-4546-ac29-86ae4995c6ff@linux.dev> (raw)
In-Reply-To: <ab65545f-c79c-492b-a699-39f7afa984ea@nvidia.com>
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.
next prev parent reply other threads:[~2025-07-21 19:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 8:30 [PATCH net-next V6 0/5] selftests: drv-net: Test XDP native support Mohsin Bashir
2025-07-19 8:30 ` [PATCH net-next V6 1/5] net: netdevsim: hook in XDP handling Mohsin Bashir
2025-07-19 8:30 ` [PATCH net-next V6 2/5] selftests: drv-net: Test XDP_PASS/DROP support Mohsin Bashir
2025-07-21 11:43 ` Nimrod Oren
2025-07-21 15:40 ` Jakub Kicinski
2025-07-21 18:34 ` Gal Pressman
2025-07-21 20:33 ` Jakub Kicinski
2025-07-22 7:21 ` Gal Pressman
2025-07-22 13:49 ` Jakub Kicinski
2025-07-22 15:03 ` Paolo Abeni
2025-07-23 6:17 ` Gal Pressman
2025-07-21 19:43 ` Martin KaFai Lau [this message]
2025-07-21 20:24 ` Jakub Kicinski
2025-07-19 8:30 ` [PATCH net-next V6 3/5] selftests: drv-net: Test XDP_TX support Mohsin Bashir
2025-07-19 8:30 ` [PATCH net-next V6 4/5] selftests: drv-net: Test tail-adjustment support Mohsin Bashir
2025-07-19 8:30 ` [PATCH net-next V6 5/5] selftests: drv-net: Test head-adjustment support Mohsin Bashir
2025-07-23 1:30 ` [PATCH net-next V6 0/5] selftests: drv-net: Test XDP native support patchwork-bot+netdevbpf
2025-07-23 7:11 ` Gal Pressman
2025-07-23 14:12 ` Jakub Kicinski
2025-07-23 16:01 ` Gal Pressman
2025-07-24 9:05 ` Simon Horman
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=fd195e9f-e584-4546-ac29-86ae4995c6ff@linux.dev \
--to=martin.lau@linux$(echo .)dev \
--cc=andrew+netdev@lunn$(echo .)ch \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=cjubran@nvidia$(echo .)com \
--cc=cratiu@nvidia$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=gal@nvidia$(echo .)com \
--cc=hawk@kernel$(echo .)org \
--cc=horms@kernel$(echo .)org \
--cc=jdamato@fastly$(echo .)com \
--cc=joannelkoong@gmail$(echo .)com \
--cc=john.fastabend@gmail$(echo .)com \
--cc=justinstitt@google$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kselftest@vger$(echo .)kernel.org \
--cc=llvm@lists$(echo .)linux.dev \
--cc=mbloch@nvidia$(echo .)com \
--cc=mohsin.bashr@gmail$(echo .)com \
--cc=morbo@google$(echo .)com \
--cc=nathan@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=nick.desaulniers+lkml@gmail$(echo .)com \
--cc=noren@nvidia$(echo .)com \
--cc=pabeni@redhat$(echo .)com \
--cc=sdf@fomichev$(echo .)me \
--cc=shuah@kernel$(echo .)org \
--cc=tariqt@nvidia$(echo .)com \
--cc=thoiland@redhat$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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