Re: [bpf PATCH v2 6/6] bpf: selftest remove attempts to add LISTEN sockets to sockmap

2018-06-15 Thread Martin KaFai Lau
On Thu, Jun 14, 2018 at 09:45:12AM -0700, John Fastabend wrote: > In selftest test_maps the sockmap test case attempts to add a socket > in listening state to the sockmap. This is no longer a valid operation > so it fails as expected. However, the test wrongly reports this as an > error now. Fix

[bpf PATCH v2 6/6] bpf: selftest remove attempts to add LISTEN sockets to sockmap

2018-06-14 Thread John Fastabend
In selftest test_maps the sockmap test case attempts to add a socket in listening state to the sockmap. This is no longer a valid operation so it fails as expected. However, the test wrongly reports this as an error now. Fix the test to avoid adding sockets in listening state. Signed-off-by: John