On 01/22/2018 09:01 PM, Alexei Starovoitov wrote: > On Tue, Jan 23, 2018 at 01:55:30PM +0900, Prashant Bhole wrote: >> >> >> On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: >>> On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: >>>> Bug: BPF programs and maps related to sockmaps test exist in >>>> memory even after test_maps ends >>>> >>>> This patch fixes it by empyting sockmaps when test ends. >>>> >>>> Fixes: 6f6d33f3b3d0f ("bpf: selftests add sockmap tests") >>>> Signed-off-by: Prashant Bhole <bhole_prashant...@lab.ntt.co.jp> >>> >>> that's a fine workaround and I'm planning to apply this patch >>> to bpf-next, but it's not a fix. The sockmap should have cleaned >>> itself up. >> >> Ok. Do I need to re-submit it targeted to -bpf-next and without fixes tag? > > No need. It's fine. >
Also I'm looking over sockmap code now for the bug, should have something shortly. Agree this is a nice cleanup of the test code though. On the other hand I should add some explicit tests for this case (deleting map with elements) as well though. .John