summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorTushar Vyavahare <tushar.vyavahare@intel.com>2026-06-08 16:09:35 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-13 01:23:31 +0300
commitb1763103276940b9eac5b92985bf839c4c3319ac (patch)
treeb5539010e6a5109609658ece45a2fd583497c70d /tools/lib/python/kdoc
parent19ff5c5457509d8be3c621a8f78894bd519eb3cb (diff)
downloadlinux-b1763103276940b9eac5b92985bf839c4c3319ac.tar.xz
selftests/xsk: Move UMEM state from ifobject to xsk_socket_info
Move UMEM ownership from ifobject to xsk_socket_info and access it through xsk->umem. Allocate one shared umem_real in ifobject_create() and let all sockets reference it through xsk->umem, while keeping ownership in xsk_arr[0]. Keep the existing goto-based error path in ifobject_create() and free the allocation once in ifobject_delete(). Reset the existing umem_real in __test_spec_init() with memset() instead of reallocating it. Preserve shared-UMEM behavior by copying RX UMEM state into a TX-local UMEM state in thread_common_ops_tx() and reset base_addr/next_buffer before TX socket configuration. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com> Link: https://patch.msgid.link/20260608130938.958793-3-tushar.vyavahare@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions