On Mon, Jan 4, 2016 at 3:11 PM, Alexei Starovoitov
[off-list ref] wrote:
On Mon, Jan 04, 2016 at 11:26:37AM -0500, Craig Gallek wrote:
quoted
From: Craig Gallek <redacted>
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 <redacted>
...
quoted
+ /* 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