From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH v2 bpf-next] bpf: Extend the sk_lookup() helper to XDP hookpoint. Date: Fri, 9 Nov 2018 10:38:27 +0100 Message-ID: <304304ec-6c84-557f-883a-91de1e512cfb@iogearbox.net> References: <20181028210245.6420f6c7@cubn> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , Joe Stringer , Martin Lau , "netdev@vger.kernel.org" , Jesper Dangaard Brouer , John Fastabend To: Nitin Hande Return-path: Received: from www62.your-server.de ([213.133.104.62]:44484 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbeKITST (ORCPT ); Fri, 9 Nov 2018 14:18:19 -0500 In-Reply-To: <20181028210245.6420f6c7@cubn> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/29/2018 05:02 AM, Nitin Hande wrote: > > This patch proposes to extend the sk_lookup() BPF API to the > XDP hookpoint. The sk_lookup() helper supports a lookup > on incoming packet to find the corresponding socket that will > receive this packet. Current support for this BPF API is > at the tc hookpoint. This patch will extend this API at XDP > hookpoint. A XDP program can map the incoming packet to the > 5-tuple parameter and invoke the API to find the corresponding > socket structure. > > Signed-off-by: Nitin Hande Looks good to me, applied to bpf-next, thanks Nitin!