diff options
author | Alexander Lobakin <aleksander.lobakin@intel.com> | 2024-12-18 20:44:32 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-20 06:51:14 +0300 |
commit | 51205f841a495c78aa59d0e41683463dac23eb27 (patch) | |
tree | 76dddd37b5d6696f92b2ee8997279205c39f82fb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 539c1fba1ac77184215d892eda0857f5687b7366 (diff) | |
download | linux-51205f841a495c78aa59d0e41683463dac23eb27.tar.xz |
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 <maciej.fijalkowski@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20241218174435.1445282-5-aleksander.lobakin@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions