Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp555840imn; Fri, 29 Jul 2022 15:42:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1szv20xFfqaHDH7tF7WV+H2VPH9kgRdoWvUUiax7qBx6256+7BxzaRytiow3NHHw9SnqpdM X-Received: by 2002:a17:907:2da7:b0:72b:53e1:adac with SMTP id gt39-20020a1709072da700b0072b53e1adacmr4373361ejc.357.1659134565172; Fri, 29 Jul 2022 15:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659134565; cv=none; d=google.com; s=arc-20160816; b=FfBgCqbGLQSMGRrQGbBfNcDpVFqdfim4voPSaXGwi0nl2HnOs9ttZXW3umNCNdt+I/ 7XZCvDlwIp5sF0qFaiS0GIYs3a3JEDJtvuok8IXZ6XIlH/HLIp2PIx8GM9/8Gt9X+N4h T8fhvXG4j1un8w3ynJRQGgeaSolbfZRHH/NfTKiEp1NFQ6ezc/0UXXAdqmK/NkpQv3CR hO/c3uw7kDhahEbw6VP0UGGZZuTRc+0K9xMrxT8WXls/e0JITTR1+mrLVipf8vkPLFLS L1epSG3RGJc6+SdbWODsmrkatMfy+bZ2bRkE1COqI7l01ANtGVkhvOXGoLpqGcj/xukV Chcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iVLkBvqvxxQmzM1anS4jAEK5JqYhmqqjCIgQmNoi7rg=; b=Yn3dVlR6XCHOCeN5V43K7v21sIjjoFgr1BciyH6Yl3q5ye4cbhqEuu5g+QvuvMcyll jtoYUbZaD5P7pveaZp6S0o/2+SgxSglU2GUtjJK7dYWHTCUbV38Qxeuf6K/qr/lWg78o f/e1BZOYSKQamcRbZN+BaHfGlbS93POozvMdTC9Efspva1512PqErqPoNVSFWRdn4adl 5pla85N457DNAPkp6wP4n2dm+ByiO75K4tCVbW8pEuUxApPycXUCPU5pySH29RiAJRXQ Xzg9EBr7wefLng1nQCeDkO/Z8qxm7qA0bAt/3Q9bb3uQdl/ebSzHWT/Exx5yDl69p5El 5MUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q2Fr4ogA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020aa7dd50000000b0043c762f29dfsi3118041edw.524.2022.07.29.15.42.19; Fri, 29 Jul 2022 15:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q2Fr4ogA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239352AbiG2W11 (ORCPT + 99 others); Fri, 29 Jul 2022 18:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbiG2W1Z (ORCPT ); Fri, 29 Jul 2022 18:27:25 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C4758AB2B; Fri, 29 Jul 2022 15:27:24 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id e15so7384298edj.2; Fri, 29 Jul 2022 15:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=iVLkBvqvxxQmzM1anS4jAEK5JqYhmqqjCIgQmNoi7rg=; b=Q2Fr4ogA0UKbX/4KTDe6Ln4UfSgAt+oVpF7n1I4/L9l6vxMdaPpFof+vfnPSCX77jo pY89Eg+oEc+jW9Oz+tm4taoCb1r8OwFyaCffG/1ouprQG3PAugTMXWVv8ppnDun0rKAh AVC8JliqTTM8Idxu3kERXCVwa6VJj3AHoQy1SKDH23XQcZV5xCk2nvE6MAhe8XNVrOAC ScedkdWaxejc7w/3QxsLs6X84+nwWWMJbxGxZWFE5XkvZNuk262hMRUyhGxknqm1+enL DCJ23fXGUMZ+HNFvnBgEjA2gjWip5P2Fw8M/sFAsL4ZfiSbrlcpzhlnj8sVPt3Llxriy rw3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=iVLkBvqvxxQmzM1anS4jAEK5JqYhmqqjCIgQmNoi7rg=; b=xBCDDpgSxxMqsd+i7C0D2/RsGljI379QiNbdpYgs8vDdBnERvcx1XQQehcDH6gwc/h 5mxAbCSH0U8Yuv6Vi9SRJUGJyUaEVk5b2B8besHhSK1KPl+S+SIZqe4JuBKQmrrk+zJD 79Jibjq5KwHt1Wu3/m5TovYHtvr16zNm5tUTwt7KyH8TWFiN9ehVqeURmnriEricHtQX DdFfhH7uqTjfXg9VfFbHriveOrPjZQYMYkhecEwHr7oYL98/8cJqYYbpijKsXLSEElMk uRee9ohYiCrrfkGZZ7e6ioVwmBQmxlVQqre+WMXN0XrBOfvdD+7xrx1/CGjmM9O67uPZ FI6w== X-Gm-Message-State: AJIora/jsIJn+mEMlRv17U+D1LVHTMJFjkjUvkh+mLbbybino6u3VVAx S+Sr5hLxpV98yxXLVKIoRSDQtQSmAd5JZ6/PRaRmM6Qedfw= X-Received: by 2002:a05:6402:1945:b0:43b:d456:daf8 with SMTP id f5-20020a056402194500b0043bd456daf8mr5338515edz.81.1659133642700; Fri, 29 Jul 2022 15:27:22 -0700 (PDT) MIME-Version: 1.0 References: <2c105a1ff3071796189093c536218e44ea3b1aa0.1659122785.git.dxu@dxuuu.xyz> In-Reply-To: <2c105a1ff3071796189093c536218e44ea3b1aa0.1659122785.git.dxu@dxuuu.xyz> From: Andrii Nakryiko Date: Fri, 29 Jul 2022 15:27:11 -0700 Message-ID: Subject: Re: [PATCH bpf] bpf: Fix oudated __bpf_skc_lookup() comment To: Daniel Xu Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 29, 2022 at 12:47 PM Daniel Xu wrote: > > The function returns a pointer now. > > Fixes: edbf8c01de5a ("bpf: add skc_lookup_tcp helper") > Signed-off-by: Daniel Xu > --- This was already done in [0] in bpf-next. [0] f5be22c64bd6 ("bpf: Fix bpf_skc_lookup comment wrt. return type") > net/core/filter.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/net/core/filter.c b/net/core/filter.c > index 5d16d66727fc..866ca05f95e0 100644 > --- a/net/core/filter.c > +++ b/net/core/filter.c > @@ -6463,8 +6463,6 @@ static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple, > > /* bpf_skc_lookup performs the core lookup for different types of sockets, > * taking a reference on the socket if it doesn't have the flag SOCK_RCU_FREE. > - * Returns the socket as an 'unsigned long' to simplify the casting in the > - * callers to satisfy BPF_CALL declarations. > */ > static struct sock * > __bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, > -- > 2.37.1 >