xskmap: Move non-standard list manipulation to helper
authorToke Høiland-Jørgensen <toke@redhat.com>
Fri, 28 Jun 2019 09:12:34 +0000 (11:12 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 28 Jun 2019 23:31:08 +0000 (01:31 +0200)
commitc8af5cd75e2411d5a5aacf115f59a5ff6b87f3fa
tree8546f434daf91c6cf24a15281eafc471ac50eabe
parent2d6dbb9a65f4001f2878512078394c11301994f3
xskmap: Move non-standard list manipulation to helper

Add a helper in list.h for the non-standard way of clearing a list that is
used in xskmap. This makes it easier to reuse it in the other map types,
and also makes sure this usage is not forgotten in any list refactorings in
the future.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/list.h
kernel/bpf/xskmap.c