summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2024-11-12 04:29:23 +0300
committerJakub Kicinski <kuba@kernel.org>2024-11-16 05:46:55 +0300
commit7db956707f5f57e18c5ebf1681db2923eb6144e1 (patch)
tree1ae75886ce0fcad11bd20f52624eb5e89b9a3b92 /tools/perf/scripts/python/exported-sql-viewer.py
parent880ebcbe06636c42cfb328039581e177c6cd6ba5 (diff)
downloadlinux-7db956707f5f57e18c5ebf1681db2923eb6144e1.tar.xz
virtio_net: refactor the xmit type
Because the af-xdp will introduce a new xmit type, so I refactor the xmit type mechanism first. We know both xdp_frame and sk_buff are at least 4 bytes aligned. For the xdp tx, we do not pass any pointer to virtio core as data, we just need to pass the len of the packet. So we will push len to the void pointer. We can make sure the pointer is 4 bytes aligned. And the data structure of AF_XDP also is at least 4 bytes aligned. So the last two bits of the pointers are free, we can't use these to distinguish them. 00 for skb 01 for SKB_ORPHAN 10 for XDP 11 for AF-XDP tx Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://patch.msgid.link/20241112012928.102478-9-xuanzhuo@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions