xsk: Remove explicit_free parameter from __xsk_rcv()
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 22 Jan 2021 10:53:49 +0000 (11:53 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 25 Jan 2021 22:56:33 +0000 (23:56 +0100)
commit458f7272341265e443c227ba55ee4a338021a60a
treecd3c010019153d541b20958bc4fba6e6ab194fdf
parent6e66fbb10597f31e88c575e07640978f376abcd3
xsk: Remove explicit_free parameter from __xsk_rcv()

The explicit_free parameter of the __xsk_rcv() function was used to
mark whether the call was via the generic XDP or the native XDP
path. Instead of clutter the code with if-statements and "true/false"
parameters which are hard to understand, simply move the explicit free
to the __xsk_map_redirect() which is always called from the native XDP
path.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/bpf/20210122105351.11751-2-bjorn.topel@gmail.com
net/xdp/xsk.c