selftests/xsk: Add missing close() on netns fd
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Tue, 30 Aug 2022 13:39:05 +0000 (15:39 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 31 Aug 2022 18:53:31 +0000 (20:53 +0200)
commit8a7d61bdc2fac2c460a2f32a062f5c6dbd21a764
tree93565910940853ed63fb2e105ec3a6172a4929d4
parentc00c4461689e15ac2cc3b9a595a54e4d8afd3d77
selftests/xsk: Add missing close() on netns fd

Commit 1034b03e54ac ("selftests: xsk: Simplify cleanup of ifobjects")
removed close on netns fd, which is not correct, so let us restore it.

Fixes: 1034b03e54ac ("selftests: xsk: Simplify cleanup of ifobjects")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220830133905.9945-1-maciej.fijalkowski@intel.com
tools/testing/selftests/bpf/xskxceiver.c