xdp: Handle device unregister for devmap_hash map type
authorToke Høiland-Jørgensen <toke@redhat.com>
Sat, 19 Oct 2019 11:19:31 +0000 (13:19 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 21 Oct 2019 22:51:41 +0000 (15:51 -0700)
commitce197d83a9fc42795c248c90983bf05faf0f013b
tree2dc244c72f47b01bb6f524aed82ca9894e2cb8fe
parent05679ca6feebc1ef3bf743563315d9975adcf6fb
xdp: Handle device unregister for devmap_hash map type

It seems I forgot to add handling of devmap_hash type maps to the device
unregister hook for devmaps. This omission causes devices to not be
properly released, which causes hangs.

Fix this by adding the missing handler.

Fixes: 6f9d451ab1a3 ("xdp: Add devmap_hash map type for looking up devices by hashed index")
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191019111931.2981954-1-toke@redhat.com
kernel/bpf/devmap.c