selftests/bpf: Remove a lot of ifobject casting
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 22 Jan 2021 15:47:14 +0000 (16:47 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 25 Jan 2021 23:05:01 +0000 (00:05 +0100)
commit7140ef14007e472ea97853ae7046c483f9272397
tree12a376159ece9b65be28ad1e8ab23415d96b8b30
parent78ed4045914c63054f2f377471b5a94f7006d61e
selftests/bpf: Remove a lot of ifobject casting

Instead of passing void * all over the place, let us pass the actual
type (ifobject) and remove the void-ptr-to-type-ptr casting.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210122154725.22140-2-bjorn.topel@gmail.com
tools/testing/selftests/bpf/xdpxceiver.c