[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEfhGixFuGUpUgYDvUoGA-_ot5JzVF7egFxVqyRcibhjxTWoyA@mail.gmail.com>
Date: Mon, 4 Jan 2016 17:35:58 -0500
From: Craig Gallek <kraigatgoog@...il.com>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>
Subject: Re: [PATCH v3 net-next 3/4] soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF
On Mon, Jan 4, 2016 at 3:11 PM, Alexei Starovoitov
<alexei.starovoitov@...il.com> wrote:
> On Mon, Jan 04, 2016 at 11:26:37AM -0500, Craig Gallek wrote:
>> From: Craig Gallek <kraig@...gle.com>
>>
>> Expose socket options for setting a classic or extended BPF program
>> for use when selecting sockets in an SO_REUSEPORT group. These options
>> can be used on the first socket to belong to a group before bind or
>> on any socket in the group after bind.
>>
>> This change includes refactoring of the existing sk_filter code to
>> allow reuse of the existing BPF filter validation checks.
>>
>> Signed-off-by: Craig Gallek <kraig@...gle.com>
> ...
>> + /* temporarily advance data past protocol header */
>> + if (!pskb_may_pull(skb, hdr_len) || !pskb_pull(skb, hdr_len)) {
>> + consume_skb(nskb);
>> + return NULL;
>> + }
>
> pskb_pull() includes pskb_may_pull().
Thanks, I completely missed this :\ -> v4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists