Messages in this thread | | | From | Lorenz Bauer <> | Date | Mon, 3 Jul 2023 10:53:03 +0100 | Subject | Re: [PATCH bpf-next v4 6/7] bpf, net: Support SO_REUSEPORT sockets with bpf_sk_assign |
| |
On Wed, Jun 28, 2023 at 7:50 PM Kuniyuki Iwashima <kuniyu@amazon.com> wrote:
> > + } else { > > + return sk; > > + } > > + > > + reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, > > + saddr, sport, daddr, ntohs(dport), > > + ehashfn); > > + if (!reuse_sk || reuse_sk == sk) > > nit: compiler might have optimised though, given here is the fast path, > we can save reuse_sk == sk check.
Ack.
| |