Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp491117imn; Fri, 29 Jul 2022 13:25:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t43AmjOVdMB3+FKI1kGzhNGPm+mK5oqTqr9Tj45X7bZqLsRbCev8T74KYmDq0h8unUoH8z X-Received: by 2002:a17:907:6d07:b0:72f:18bf:505 with SMTP id sa7-20020a1709076d0700b0072f18bf0505mr4125842ejc.406.1659126318329; Fri, 29 Jul 2022 13:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659126318; cv=none; d=google.com; s=arc-20160816; b=it7Ob9bSKNd2s0Xda7pPxgkrm99OUIhUDQLhdxyp3Z4hqkQn6hmVdItRFL7NW1uFRi 713llfhThTyAJ4OjHgihlQRgk8b46YmIiR6tPM616S1vzDbIIjadPVMfZooXyuuaz3eh fXxPc9xV4oDxmVm5NabzLXGWka3hZAgCMbgedKEv9vRVaoDj0bWlwrkYvuv4jE18z35E ayK/cmqK0WZEl9bilx1pz+WAbz+sDgGgawUBlPhww0J4jd7lGnI9OXRTYGkCYPX6z9Sn aggR+iGmdvxtGRVP0QNH/XsuxpYVI8grGj5wRtWNCq7tpKxxiR5eeWcJXC3lK3TDNh48 fgxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=gBa96b9MFSOKIkAQUuKyhWNI9gnNQPrOWjHllrefEKQ=; b=mLAZ5NM/KemSeCGcktcdsjCXzwuzxv7kBma5z0UQT7C/g3uD6Q7+0quOaUsEZqtat5 W5KvBOKMwQbb3I83mWSyk0cVAaK8oX/FmUtHykPKoWJ8lkCxnYSGbZM6aRlpIZmiivcq 7tB6lKep8LO4w9KaaUy7RUmkbfeQ8ce607kJiK0FP9vwmD57de4I/5lsnFEbHkEq9g3L +gomjJtXgsp+qbYVf34KKW9lXaNT/bSVkvWM8zQa4ytLrqvR894Bpo7qWjP1DxIhEr9O l+F8oda7R3v5Oxnb5unbOvXqcggYDj4sx4CbSoK0p28PGIYy8zzRPBYOsigBfr6y+WOi V+sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm2 header.b=DMw+2TH4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1E4CKwbQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a056402124700b0043c92c44c54si3564595edw.330.2022.07.29.13.24.53; Fri, 29 Jul 2022 13:25:18 -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=@dxuuu.xyz header.s=fm2 header.b=DMw+2TH4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1E4CKwbQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238904AbiG2Trz (ORCPT + 99 others); Fri, 29 Jul 2022 15:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbiG2Trx (ORCPT ); Fri, 29 Jul 2022 15:47:53 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D491067586; Fri, 29 Jul 2022 12:47:50 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 992A0320085B; Fri, 29 Jul 2022 15:47:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 29 Jul 2022 15:47:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1659124069; x=1659210469; bh=gBa96b9MFSOKIkAQUuKyhWNI9 gnNQPrOWjHllrefEKQ=; b=DMw+2TH4p+EGsByQMMnfEmDk7MOAFql/S3rJLmwTi HDpDD67r+CqezaXRZ5O4nfFC0E5Xfx3QY7YIjZIhGnGF+LLoFJ3T6xy7PgnO3E9x uUIMY9B9xs+mYGkoGeHHBHYJcXD+lsg/JTyQquYKD6od99tJmjNBHAXy0cl6aED9 ZwCIPILC1vCnk4t0+eY3RdbxaEtgftrQLoqy2QjeaAYiuZkAhcAFTrvNJ00kjNaT IAFBHf6+WHqTLyy+0/rZ1tmmoQbjrXFIa4cLt1BbwD1WFu3nSAsRMQqqgGteig1X +94kR4xUnDhQomxw56iVQ9ao/8skkvP+7fxc+LFbV5/sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1659124069; x=1659210469; bh=gBa96b9MFSOKIkAQUuKyhWNI9gnNQPrOWjH llrefEKQ=; b=1E4CKwbQ5XIjXKz36456d/ffDHyU/2IwHkMxy/1mNazZ4YvRpdU A2ljIqse8I1Vx6yz77SURPN2hJeH4kC0qWCvk8FYJjrXX0elIBNLAyeqSHTiPYt5 UWHnX/joR8UXq1Mxvb0O9muJne0xSMrzgmRWNte5+UnOeN2S2kTu5ZrsXR4aIpWw cNM6XfdGz0l1lBaaj8LnT/PeeMkvsQNTE8v1px+YNwxUzgLkJ9U7mUcw7Swjp53S D/9E5Ov+Acey1lzQwZRlRCzQ8MQTOav51rS4ofTppUKzTTdPfV2LjTH6XJetHKI0 oQP9hpiXNSkabFVFyFkMO7WkVdZHRIJL7Jw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddujedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhephf fvvefufffkofgggfestdekredtredttdenucfhrhhomhepffgrnhhivghlucgiuhcuoegu gihusegugihuuhhurdighiiiqeenucggtffrrghtthgvrhhnpedvgefgtefgleehhfeufe ekuddvgfeuvdfhgeeljeduudfffffgteeuudeiieekjeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Jul 2022 15:47:48 -0400 (EDT) From: Daniel Xu To: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org Cc: Daniel Xu , linux-kernel@vger.kernel.org Subject: [PATCH bpf] bpf: Fix oudated __bpf_skc_lookup() comment Date: Fri, 29 Jul 2022 14:45:41 -0500 Message-Id: <2c105a1ff3071796189093c536218e44ea3b1aa0.1659122785.git.dxu@dxuuu.xyz> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no 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 The function returns a pointer now. Fixes: edbf8c01de5a ("bpf: add skc_lookup_tcp helper") Signed-off-by: Daniel Xu --- 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