aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2024-12-18 17:44:32 +0000
committerJakub Kicinski <[email protected]>2024-12-20 03:51:14 +0000
commit51205f841a495c78aa59d0e41683463dac23eb27 (patch)
tree76dddd37b5d6696f92b2ee8997279205c39f82fb /tools/testing/selftests/net/lib/py/utils.py
parentxdp: add generic xdp_build_skb_from_buff() (diff)
downloadkernel-51205f841a495c78aa59d0e41683463dac23eb27.tar.gz
kernel-51205f841a495c78aa59d0e41683463dac23eb27.zip
xsk: make xsk_buff_add_frag() really add the frag via __xdp_buff_add_frag()
Currently, xsk_buff_add_frag() only adds the frag to pool's linked list, not doing anything with the &xdp_buff. The drivers do that manually and the logic is the same. Make it really add an skb frag, just like xdp_buff_add_frag() does that, and freeing frags on error if needed. This allows to remove repeating code from i40e and ice and not add the same code again and again. Acked-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Alexander Lobakin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions