Re: [PATCH net-next V6 2/5] selftests: drv-net: Test XDP_PASS/DROP support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux