[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJegeYmU4ntddE8cHFZT5QM0=aOzu0s1pYkQMehREv56JorEog@mail.gmail.com>
Date: Tue, 18 Apr 2017 11:56:56 -0400
From: Mike Maloney <maloneykernel@...il.com>
To: Sowmini Varadhan <sowmini.varadhan@...cle.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
Mike Maloney <maloney@...gle.com>
Subject: Re: [PATCH net] selftests/net: Fixes psock_fanout CBPF test case
On Tue, Apr 18, 2017 at 11:26 AM, Sowmini Varadhan
<sowmini.varadhan@...cle.com> wrote:
> On (04/18/17 11:14), Mike Maloney wrote:
>> 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.
>
> Fix look good to me, but could you please also add the bpf_asm input
> as a comment to the C code, in case we want to to read/extend this
> down the road?
>
> --Sowmini
>
I am not 100% sure what you are asking for, as the instructions you
can feed to bpf_asm are already commented to the right of the program.
-Mike
Powered by blists - more mailing lists