Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp349844rwb; Fri, 12 Aug 2022 22:20:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5txYMui7ZbgmQTgx+EWVD9XOMbaOBvN35FQw16k7gcwhLjjKzcNOuL3gSWJM39sjk6gU3v X-Received: by 2002:a17:906:9b86:b0:6f8:24e7:af7d with SMTP id dd6-20020a1709069b8600b006f824e7af7dmr4544831ejc.295.1660368018236; Fri, 12 Aug 2022 22:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660368018; cv=none; d=google.com; s=arc-20160816; b=bGkFMmiUYq4Cqbc/Kq/1m3/VL16XzdKzCW/FT165+4necUOX8jVHbsl+OLmoaQ/aF5 qONeD7xEzT+m5O/ZgyMki5Rt2slNldT1gQTX5juVvAftsmQh365Hmj3Re7yM5/y+pXEo IiQSowN0SrU1yjI5QRo4iTRJnrV62rHquqwzkpd5zlYaAVURaKYY580J7XLn/RA5OeFT QUvuoy5UaUcgrsQGmRpcsLxn3pXqjrV1x2Y4e3WmA3ZY2/NmCUFtQ2iTiCsJ5NFVQOhk ujGxYpaWrkqWUODJK7F5/B4rHW4wAiY01pR7MEAmyKN3zDX1oiuuJhlQb9x9FPBdRwxk QBkA== 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:dkim-signature; bh=VUHCQwlaRdPYc5+96fH2AK8O9hMSpZvPcuLwqBAO7GQ=; b=d9ULR1R9KuhNlpXOIy2I9AiIsb1NBSnNU5U2SP19P1SRRdHCcaz2nTc0Vnc9J/vkKd CVd8dKrCGopaY5Dzpu8UAjJcrCrmlxAisol76fPeN+FwmEAtLMqGhQ+mE5d9IPEv/egn DENCWI7YEr8Z0v8+z9SjRLR3u6pXXlFEKskGav+c5urCUCRmyaaBCRLvRqgaS4o7xGFO 88F/sZmTnijQ95k9ZOpX0Ut6k62Sl+rAa9nHcCdyPrQtxpqbPrTvjmHD88oqfu6OijN3 rV1uIqd8+SwPxXVkbHrkN3vfWNpfiMNDtvq6+dAYWy/WezbnZMOcpysMfs0FrdRATKWi +Qug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbqPITAh; 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 dt23-20020a170906b79700b0072b3cb29befsi2832618ejb.445.2022.08.12.22.19.45; Fri, 12 Aug 2022 22:20: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=@gmail.com header.s=20210112 header.b=DbqPITAh; 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 S236782AbiHMEfZ (ORCPT + 99 others); Sat, 13 Aug 2022 00:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiHMEfW (ORCPT ); Sat, 13 Aug 2022 00:35:22 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620FA6472; Fri, 12 Aug 2022 21:35:19 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id y1so2318848plb.2; Fri, 12 Aug 2022 21:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=VUHCQwlaRdPYc5+96fH2AK8O9hMSpZvPcuLwqBAO7GQ=; b=DbqPITAh6lgQPvO8iRa3uqHjy37oFWqdIFpqX5YpaTeFSa9gvbfPa8ouyMvutd/LuW ka2BMZndXfiNWXfow9ffrQt2nFRaSV/9YFfeii7/IHng9yehzW/yZ297A2N1C6RfU+ES gP6LngMgBEL1JkSigxeKsJQysiofWZ8/etpZ9MY4uEFuTFSHqdlVL+jJ6bfj0Z3tqynK yb4oIbwmRKsf8Ki1eaBFEGKXcYM6hrSfRqOJjNJqY9pg9yocPUKxr85qAzee0zUi6lyO WgOZZ7KBVGUbxOEwDEEof2WCWLeokyTkWD2mvkkQgqYl8iPWfdGnjzWzlElMvOMFwMZ4 xpXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=VUHCQwlaRdPYc5+96fH2AK8O9hMSpZvPcuLwqBAO7GQ=; b=bqtwLqfmwjMDf+Zlo3ln2I+yO0HFywftoIkqjIxLOkAAPQqeK8AiKlmdKo+XQ+HHEz 4rnbG4T/WXr/DhQVZAPWKbqrnZEYSrOqDd7SmTHOCHuSQHPk4s/wBznBr2MSafvGAA5+ gnYVh4wNmOjWbUXf9L0zpRfFBX3qWWYdI6eQguU3c/HI8OM+N3N0yoCvS3VcyFC3s3v6 QsHG+6mkxLGn4flk+rQVMixxb1NpPTQyKhFbWuN+Y0z4x19iqR7s0S90PSrCW/acrjTb 33voNkMygwDlmkq9W21MBGcUMXwl9i4qxZJw6/enrzoVgLwojyqkIOnIA3Iqhk25BHbO bHaw== X-Gm-Message-State: ACgBeo0lON3ZtiNDNAmfNoo+llJ/lO9aAtyJu/wLttQf42XjOmwYYuQb UiabOQOdTYbTAqB7ZuRuzqQ= X-Received: by 2002:a17:90b:1c8e:b0:1f7:5250:7b44 with SMTP id oo14-20020a17090b1c8e00b001f752507b44mr17176314pjb.212.1660365318895; Fri, 12 Aug 2022 21:35:18 -0700 (PDT) Received: from localhost.localdomain ([223.212.58.71]) by smtp.gmail.com with ESMTPSA id y6-20020aa793c6000000b0052e2a1edab8sm2479425pff.24.2022.08.12.21.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 21:35:18 -0700 (PDT) From: Yuntao Wang To: "Jason A. Donenfeld" Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yuntao Wang Subject: [PATCH] wireguard: send/receive: update function names in comments Date: Sat, 13 Aug 2022 12:35:08 +0800 Message-Id: <20220813043508.128996-1-ytcoode@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 The functions packet_send_queued_handshakes() and packet_process_queued_handshake_packets() were renamed to wg_packet_handshake_send_worker() and wg_packet_handshake_receive_worker() respectively, but the comments referring to them were not updated accordingly, let's fix it. Signed-off-by: Yuntao Wang --- drivers/net/wireguard/receive.c | 2 +- drivers/net/wireguard/send.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireguard/receive.c b/drivers/net/wireguard/receive.c index 7135d51d2d87..5b9cd1841390 100644 --- a/drivers/net/wireguard/receive.c +++ b/drivers/net/wireguard/receive.c @@ -566,7 +566,7 @@ void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb) } atomic_inc(&wg->handshake_queue_len); cpu = wg_cpumask_next_online(&wg->handshake_queue.last_cpu); - /* Queues up a call to packet_process_queued_handshake_packets(skb): */ + /* Queues up a call to wg_packet_handshake_receive_worker(skb): */ queue_work_on(cpu, wg->handshake_receive_wq, &per_cpu_ptr(wg->handshake_queue.worker, cpu)->work); break; diff --git a/drivers/net/wireguard/send.c b/drivers/net/wireguard/send.c index 5368f7c35b4b..15202c2e91a8 100644 --- a/drivers/net/wireguard/send.c +++ b/drivers/net/wireguard/send.c @@ -69,8 +69,8 @@ void wg_packet_send_queued_handshake_initiation(struct wg_peer *peer, goto out; wg_peer_get(peer); - /* Queues up calling packet_send_queued_handshakes(peer), where we do a - * peer_put(peer) after: + /* Queues up calling wg_packet_handshake_send_worker(peer), where we do + * a wg_peer_put(peer) after: */ if (!queue_work(peer->device->handshake_send_wq, &peer->transmit_handshake_work)) -- 2.37.1