Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp780879rda; Sun, 22 Oct 2023 09:22:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlF+cQhOWbSBiCSNNzSedjVuY/on/WvY2Pc0ZR4aRcMn3RGeAhcRWMlRtmbJEojW+IzZJL X-Received: by 2002:a05:6a20:8f1c:b0:16b:977d:f7cf with SMTP id b28-20020a056a208f1c00b0016b977df7cfmr9039296pzk.36.1697991750148; Sun, 22 Oct 2023 09:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697991750; cv=none; d=google.com; s=arc-20160816; b=oKH13uBz9S4njU+1L4iQRgJUrinr0xQ14xImEI23NKTaaIzQvqqCRo1SzMhiJtRwnA 7+dX8AaY3i6m52+IDCcCzZPiiX0m4UINI4QsEwrriBmpiOw8VZz2sMZxcL7t6BuEdjaa h+1xcjPlfvabQAJ33QLtq/TPCKY+1gTTSUVqnBy5iFx/PRVq+nwJ7/p6sUKfICVluc92 YFN21Pi+wmBLXoZKJoiyNgeIzd8gYka+T5TWFCClkYk0KODhShmVb8n8ZnjliWqhQ/u4 QWuiSbz5D0VCMSilbsmxVgA+5X292ZC2/IAcMWUNroV1QYyq/cv8XU4xicxpF/Nqt7pt 9uLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3w20SDE19R7M/DBYsehJexNI3rG7cUtG/NhFavJbLJk=; fh=GKuCftXWVuD2V02qa8+3+sB56hLITty73r2bEYgwwVo=; b=BYImHNNj9WGJXlAd2ryp9uRI8Yo5lJEye56bNVn17+DVDOKUcHrQgmi97mwKGaB+Vm vFkZ1oGw/KRRum1ieeqhPEPnjUg61Zh8dlItGVkFpXzKKokNSYF9kuSDqaT/tQGh2d2R xteDkp4MAqp+zdn5yoeffp2rUSF5blps5hcRucjiMd/PZJ0a0LfBtQdZ3VLZ/mBFHHqD m1Opn0q9uyooGJsLdwfU4Cj4zNgFguGNymT3xPjK0eXuWcDglowHvFpOT+mEzR45H7BB +vP9fj0uJq3AwM9lHT9ZuDubIVQD+MnWBfWBmisPcloLv1MyRkIU5xuuLXh24M1AFhJ4 MNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aPNL8Wmd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k3-20020aa79d03000000b0068fa57cc15bsi4916450pfp.124.2023.10.22.09.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 09:22:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aPNL8Wmd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 009488075910; Sun, 22 Oct 2023 09:21:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232459AbjJVQU7 (ORCPT + 99 others); Sun, 22 Oct 2023 12:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbjJVQUt (ORCPT ); Sun, 22 Oct 2023 12:20:49 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D62CD52; Sun, 22 Oct 2023 09:20:45 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-777719639adso153413685a.3; Sun, 22 Oct 2023 09:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697991643; x=1698596443; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3w20SDE19R7M/DBYsehJexNI3rG7cUtG/NhFavJbLJk=; b=aPNL8Wmdv02ptk8uFNKKJwbRENvPKZkD40/cnEH5tGvRyaiLqFEchMzU+96w5QrYSO GQHhly9jbhNw0+V0XAEp9EQVmZMR6xDwTmDmQNkwPMgpwtSoboJTh7HzqAM6muGBBMPo OA8FP7gIsb/0kTkAWPojR3Oi+n8ChV42Q8nLyR77s0/DUCbA0+9iM8M+vElasDn+J9hT IyJAT9ugS9vyv3qIoLjLpjnD+oeqhfWtztSeBcn+t9FSOG99jBrRhyPhVcL2mI0+k2he LJUyRIb+kUcJtivDpq9dP0zM9l5qSIdONc0dSwaVxmnRCz/lK3Rc10rpqDCEOJZlhBnK tsZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697991643; x=1698596443; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3w20SDE19R7M/DBYsehJexNI3rG7cUtG/NhFavJbLJk=; b=C/b1fD3mevJvgHfpm3KN9J2WabrbHOvuMEX7dfdSbvqDQ2c12ooGv5DoPeswBcrxYa /COx66KLoKjROKGue+GQ+IA5T9lrYzsyu0R1U1u+UhHRPRLfXe/J1xToiyzEwqzZ4ax+ YSQRMRs7BBGwnrk4sk6UXEyMK2zQeDR1WaIfnR2NcOlcsUevOS1pzLv/zR3FgEV6h0Or CR3nHGzkrK3GlwMNX0N0v59VJZefpTFodO1bB2GIS6HHNoX78cW218zdQSzdIG/dq/LC Cnp2hkI7XA0ooRhJcvG2i1LAyi+7RWVx4abQ2cUWa/qY0hn0TOrBQkQB+Yvna/ZGDIzF DxNQ== X-Gm-Message-State: AOJu0YyOFFozDDYW1rsYd/nuiujbKAR6qkzBpsFT8qbjdRiIVPHZFKD3 RsJ6TqTy19xyvsqGA4qUWZ2f4wSn4UyU+3Vv X-Received: by 2002:ae9:e912:0:b0:774:3235:4e6d with SMTP id x18-20020ae9e912000000b0077432354e6dmr6496497qkf.21.1697991643257; Sun, 22 Oct 2023 09:20:43 -0700 (PDT) Received: from localhost ([2601:8c:502:14f0:d6de:9959:3c29:509b]) by smtp.gmail.com with ESMTPSA id vq6-20020a05620a558600b0076e672f535asm2095914qkn.57.2023.10.22.09.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 09:20:43 -0700 (PDT) Date: Sun, 22 Oct 2023 12:20:42 -0400 From: Oliver Crumrine To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.n Subject: [PATCH net-next 07/17] Change occurences of cork to pointer Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 22 Oct 2023 09:21:15 -0700 (PDT) Change two occurences of cork to a pointer in both inet_sk_reselect_saddr, and inet_sk_rebuild_header. Signed-off-by: Oliver Crumrine --- net/ipv4/af_inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 3edfd8737715..60f693040a2c 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1263,7 +1263,7 @@ static int inet_sk_reselect_saddr(struct sock *sk) daddr = inet_opt->opt.faddr; /* Query new route. */ - fl4 = &inet->cork.fl.u.ip4; + fl4 = &inet->cork->fl.u.ip4; rt = ip_route_connect(fl4, daddr, 0, sk->sk_bound_dev_if, sk->sk_protocol, inet->inet_sport, inet->inet_dport, sk); @@ -1321,7 +1321,7 @@ int inet_sk_rebuild_header(struct sock *sk) if (inet_opt && inet_opt->opt.srr) daddr = inet_opt->opt.faddr; rcu_read_unlock(); - fl4 = &inet->cork.fl.u.ip4; + fl4 = &inet->cork->fl.u.ip4; rt = ip_route_output_ports(sock_net(sk), fl4, sk, daddr, inet->inet_saddr, inet->inet_dport, inet->inet_sport, sk->sk_protocol, RT_CONN_FLAGS(sk), -- 2.42.0