From: Mike Maloney <[email protected]> Date: Tue, 18 Apr 2017 11:14:16 -0400
> From: Mike Maloney <[email protected]> > > 'psock_fanout' has been failing since commit 4d7b9dc1f36a9 ("tools: > psock_lib: harden socket filter used by psock tests"). That commit > changed the CBPF filter to examine the full ethernet frame, and was > tested on 'psock_tpacket' which uses SOCK_RAW. But 'psock_fanout' was > also using this same CBPF in two places, for filtering and fanout, on a > SOCK_DGRAM socket. > > Change 'psock_fanout' to use SOCK_RAW so that the CBPF program used with > SO_ATTACH_FILTER can examine the entire frame. Create a new CBPF > program for use with PACKET_FANOUT_DATA which ignores the header, as it > cannot see the ethernet header. > > Tested: Ran tools/testing/selftests/net/psock_{fanout,tpacket} 10 times, > and they all passed. > > Fixes: 4d7b9dc1f36a9 ("tools: psock_lib: harden socket filter used by psock > tests") > Signed-off-by: 'Mike Maloney <[email protected]>' Applied, thanks.
