selftests: xsk: Simplify frame traversal in dumping thread
Store offsets to each layer in a separate variables rather than compute them every single time. Signed-off-by: NBjörn Töpel <bjorn.topel@intel.com> Signed-off-by: NMaciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210329224316.17793-6-maciej.fijalkowski@intel.com
Showing
想要评论请 注册 或 登录