Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp780683rda; Sun, 22 Oct 2023 09:22:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfUsbzGEp9jkGjXu0uT8Xgm3Q6NAuSi1dDyorJnshqV5RWOs3Ul6Bx3+dthSUCH0E0byj8 X-Received: by 2002:a05:6a00:150d:b0:6bc:ce7a:6f39 with SMTP id q13-20020a056a00150d00b006bcce7a6f39mr5511126pfu.32.1697991728246; Sun, 22 Oct 2023 09:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697991728; cv=none; d=google.com; s=arc-20160816; b=C69tRGPByc18MNZLSS1Gnl0E3JfHlq3tIXR6ktQoZNpoyTtrhY68wPxTruJSwWxJGn TpL0XYvlrPrt1ob4JDp5cwN6Fa+zNWy/tTs8bV3uENNR02Y1M/3nAsbL7PKwsfzrsA1H LVrveaoKMxK3CnK9M4mYae2dv2wVPyHw0tNlJLhP0xs47AuXCuVK+apl66Vx7BhDnpqg 8LOOWSbLuX+hTkCq1iTz0tGtOVmekzeIXDHdyZRAJI2HqLQ0G1xTC93hXWYEkTP+WVBu 5+zwr/KPIWyxyuVk5ReL2X3jJgTYBvBfEUCXtDdiehzon89Xd1o5O3Kmju7Iwr1k+ZPZ LQKQ== 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=dLAq6YzQjNIuqyApWRKxm5OD/P3XILlIc8qEYqCP7cA=; fh=GKuCftXWVuD2V02qa8+3+sB56hLITty73r2bEYgwwVo=; b=ZWtUM95Jw3M3NfRKFCzSVV49muwmdJSfkusVxvP8HC3O0y1hhG3D37wnq35hvtKcLc H+oW0LBrJunG8Sm7wJF70OVoe1WEup/TQ3821ZEkKQNVac++rQKC/RoQA5gQmh/65ezP WvVVR9fKFFBbYhOLD58Jh8qGjeFzO1pW6KEjlh7Eh9UkmBRi5gDQNu0Fx+gnwoQXZg7s guHaBn7aIeaJE/z/Z+kl2KF1IdiVafjcO4eRyHycxtcg+7Fab60AYTnKYRQy34mqapnD kWEYeM7TKIV97vu6e/a6InRacC9EokW6oZFSd02R+v+rEsdRxUsQm6+Mez7p0roD5uBd GNPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GnTnI8fP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u186-20020a6385c3000000b0056a19c7c2e5si4865413pgd.361.2023.10.22.09.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 09:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GnTnI8fP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id BC3B8805360F; Sun, 22 Oct 2023 09:22:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232851AbjJVQVx (ORCPT + 99 others); Sun, 22 Oct 2023 12:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbjJVQV1 (ORCPT ); Sun, 22 Oct 2023 12:21:27 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAFDD41; Sun, 22 Oct 2023 09:21:25 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-777754138bdso172322485a.1; Sun, 22 Oct 2023 09:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697991684; x=1698596484; 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=dLAq6YzQjNIuqyApWRKxm5OD/P3XILlIc8qEYqCP7cA=; b=GnTnI8fPh8bN/9uYZ1OYptJ33BVg0Quoacfm7EY48V4V9aDp50riOJ0jYkY7FSr/S/ YDQxgb/smb0laZglv1PX2TlsiwLhmEpJq3ZmWb9J/xSUSuL9QRF9Jd6JmfJbeSRnlJ6k N+KxqsS7jr5m8C5qQqfdKMwMiMpvJFVRy/V9nXWssP0uT/X899sphT7LUqrxkFwaHG1s b9TITtKD4Ft9amJkQTEIiw+TbluksMbxyWP1tsrls8CObwDRLLTrg1dfTV0k1P2dZ0li fkw5WW544lAc09xcVCFSf7WLSKrLSeTOBN+kp/C0WtNPvSgXvgrbuKlJb2kQoh/dDRzR BilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697991684; x=1698596484; 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=dLAq6YzQjNIuqyApWRKxm5OD/P3XILlIc8qEYqCP7cA=; b=kX9xGEEWM/bZvnLC9Aeivrmgoj/ofetKl8WTuKvY8Rb5w3aq4WV+Qw0OQW3Ijif59+ +Fhk3yT4zjvI5JURktmuQpYXNF5i+JcpyNiNDqZA/BqDK2uj9WduoT/IwuELbZkB6cBh mq+nRpBM/S/HTKeQuby6h3PnufxSyxWocUKzmWl20VttchgnoS753OVvf7rfokY2kkPR iz9BVA8zKYruKnJblXxvE2YOmT3Thh2mKkeTstf2IvEqLKLSdEn+j4WhawfySu4lpWDq +c0xKMqbIilChXrM9jHy7YFKd9LL33/R/LQ2+NnDYWjeKjfjpV0JP+sqPEiZlhfKwcUR jiuw== X-Gm-Message-State: AOJu0YwxeZnN2i9qhQjWoWGI6UZtM1LW4ZyyXuwihaLEDKi+6z4O6mlO 99zkEkAcIl0KRN/h1lCga1ySi9e3llFfF8mU X-Received: by 2002:a05:620a:22a2:b0:770:72c3:dbbc with SMTP id p2-20020a05620a22a200b0077072c3dbbcmr6394314qkh.18.1697991683933; Sun, 22 Oct 2023 09:21:23 -0700 (PDT) Received: from localhost ([2601:8c:502:14f0:d6de:9959:3c29:509b]) by smtp.gmail.com with ESMTPSA id a1-20020a05620a16c100b0077411a459a8sm2126191qkn.4.2023.10.22.09.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 09:21:23 -0700 (PDT) Date: Sun, 22 Oct 2023 12:21:23 -0400 From: Oliver Crumrine To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.n Subject: [PATCH net-next 14/17] Update usages of cork to a pointer Message-ID: <6b6cc028300b69b1f201b02e67e4fcf68aa7fff1.1697989543.git.ozlinuxc@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 09:22:05 -0700 (PDT) Modify a few instances of cork to be a pointer Signed-off-by: Oliver Crumrine --- net/ipv6/ip6_output.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 54fc4c711f2c..5f24087bc9e2 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1878,12 +1878,12 @@ int ip6_append_data(struct sock *sk, * setup for corking */ dst_hold(&rt->dst); - err = ip6_setup_cork(sk, &inet->cork, &np->cork, + err = ip6_setup_cork(sk, inet->cork, np->cork, ipc6, rt); if (err) return err; - inet->cork.fl.u.ip6 = *fl6; + inet->cork->fl.u.ip6 = *fl6; exthdrlen = (ipc6->opt ? ipc6->opt->opt_flen : 0); length += exthdrlen; transhdrlen += exthdrlen; @@ -1891,8 +1891,8 @@ int ip6_append_data(struct sock *sk, transhdrlen = 0; } - return __ip6_append_data(sk, &sk->sk_write_queue, &inet->cork, - &np->cork, sk_page_frag(sk), getfrag, + return __ip6_append_data(sk, &sk->sk_write_queue, inet->cork, + np->cork, sk_page_frag(sk), getfrag, from, length, transhdrlen, flags, ipc6); } EXPORT_SYMBOL_GPL(ip6_append_data); @@ -2058,7 +2058,7 @@ static void __ip6_flush_pending_frames(struct sock *sk, void ip6_flush_pending_frames(struct sock *sk) { __ip6_flush_pending_frames(sk, &sk->sk_write_queue, - &inet_sk(sk)->cork, &inet6_sk(sk)->cork); + inet_sk(sk)->cork, inet6_sk(sk)->cork); } EXPORT_SYMBOL_GPL(ip6_flush_pending_frames); -- 2.42.0