diff options
author | Björn Töpel <[email protected]> | 2020-05-20 21:21:01 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-05-21 17:31:27 -0700 |
commit | 82c41671ca4f597b6ff05bd5d118161deec26e07 (patch) | |
tree | 6bd0694fc24467e3828c350356bd38391079f8cb /tools/perf/scripts/python/sctop.py | |
parent | 0807892ecb35734b7ce6f7c29b078f1b60151c94 (diff) |
xdp: Simplify xdp_return_{frame, frame_rx_napi, buff}
The xdp_return_{frame,frame_rx_napi,buff} function are never used,
except in xdp_convert_zc_to_xdp_frame(), by the MEM_TYPE_XSK_BUFF_POOL
memory type.
To simplify and reduce code, change so that
xdp_convert_zc_to_xdp_frame() calls xsk_buff_free() directly since the
type is know, and remove MEM_TYPE_XSK_BUFF_POOL from the switch
statement in __xdp_return() function.
Suggested-by: Maxim Mikityanskiy <[email protected]>
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions