Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5819236pxb; Wed, 26 Jan 2022 23:29:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9BxcyqNQOhUJXK+ITzjw3PlqZVwTd4lN8yFethz8GvDDwwUvY0RAu3tZsqeVaKmhSnIGP X-Received: by 2002:a63:3f4e:: with SMTP id m75mr1965796pga.208.1643268554959; Wed, 26 Jan 2022 23:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643268554; cv=none; d=google.com; s=arc-20160816; b=CI/Kqwxf7I1FkeK+VammLpfMhUEejSL/e5P72apYPEYVeQZK61s8paW7SOfz86lfcy 8SZ7v6DUvXtCu0H7MFQfHSrQzdzZ/Rs3DQ1CalgYEYCCUvegQLMcU+251j3+lF3vAkhH NXED4WZCdQvjcymKVxTjlFsjydG1UrcnaG6iqfLJN9kx9jL9i8i5HAl0Yq4ZfDQTZvPk U+QTeWKNkPgrTQzPaqXEuVpRh8NBqxngdaFLOqhVeRPvCJVJrlIsros0syXnD6TRxh9/ od91fk5g0nrYBI32BWyubQjF4LP2+aszUs7JYQtq9kI4EgWipFj6pIWxRehvDG0G5QST FUyg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WDqDCJ5NL4LuLdFrIrWhPcUdc5NRFY/X6Wj3QPHSD+0=; b=EjfzwuJtCxcdQPAtMOHbU8kxLKDl2jmTShhSFSsavupTqJ/1cHt6QxYXF46r1Iwi2m A+GhbfMIbx6mkeAXHq2zZz3IVtAqXCkIWzmhCusgqx1cLQ1CnCMEIh19NSjJ5JnRpolm LaZZftNEgx0UAs6giVRmxZgx86FHI3NULcwuydwGUTh1cdiNjNRo3t6ChKTSyEWB5vWn 3rxYZpOQsHnPOA0YPSSzjXygidy4NsY2291I+RKEfqy1Hc2Of7QgEBr7Fiz7dcV8sSsj 4+HT69X7afYv++EG6HsFINQbmkNFixYmVpVpQvMem48brSLGPDkKw2lOsddwU/ytEtBK g3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dbwE2UZJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc12si1438658pgb.269.2022.01.26.23.29.03; Wed, 26 Jan 2022 23:29:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dbwE2UZJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234194AbiA0Agx (ORCPT + 99 others); Wed, 26 Jan 2022 19:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234027AbiA0Ago (ORCPT ); Wed, 26 Jan 2022 19:36:44 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 643E9C06173B; Wed, 26 Jan 2022 16:36:44 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id w25so585189edt.7; Wed, 26 Jan 2022 16:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WDqDCJ5NL4LuLdFrIrWhPcUdc5NRFY/X6Wj3QPHSD+0=; b=dbwE2UZJaBfWlzco9zRjfOlhlIpzG/xZyaJKOUSu1yt8bXlyguuEM3KNKyantOJUF4 dgllJb9j1ScQTFkVM1YVkge+GlR+ux+OJ9/x3VRAPVCuxLokWthjDuf50zpd+dXo7SQL 7K+P1M4+OrTgtEMQpm5xZgpCv4zMzfYzG+dm8FInh+AHEmMG2CFFPpImilkUoIRl88DI 286GejQIlZEZQG1A7FofDIRjAUQy75vBgy2SCouCY664B9uegMoamGqAnDvmDEkmGHJD cQ47/qzcadSYWhik+yABV3Axd8xA9zklQrlU2qK4fkH3IL6q5rbT/zzuqkeLTgLJ0cqc zn0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WDqDCJ5NL4LuLdFrIrWhPcUdc5NRFY/X6Wj3QPHSD+0=; b=6NnnH/p0U65a08gyneraubt9WrM91YDjcfffRXgy4aMtc46xXCC4ojU9yKVLhZ/KDn buON435Ux1sUJTcMgZRD9I4jCpf0gpLTiWe32SmXqctp4kIK5h7lvK3alIMhGEFsMR7G 9bYwzEn5tn58PjHGgPFq5fH068UmghdTBHPbIWqeSo3p6mwWF+64YXGG+QAI6BLl8LIv ov01p91pJp5KEDwymvQ+HP7xFhaT74Km+TfC7qWRNrqnMSl6TWP3tfNgS9gAPqor5pFg IScmMWqT+tZXIHbZ52B2JbMNzWTTILUWl2ZyVpA/IHx5pHYQUKYMvvV/fqf8G0bL2DFG WFYA== X-Gm-Message-State: AOAM531WBE/d3ervkU7Bav1lPtotp8217jCHX9cibUksM2mwOJvOtRuf 7/V7jOjt6kbLvoTa4K+sSY1aUTAB61U= X-Received: by 2002:a05:6402:40cd:: with SMTP id z13mr1384319edb.119.1643243802763; Wed, 26 Jan 2022 16:36:42 -0800 (PST) Received: from 127.0.0.1localhost ([85.255.234.222]) by smtp.gmail.com with ESMTPSA id op27sm8039235ejb.103.2022.01.26.16.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 16:36:42 -0800 (PST) From: Pavel Begunkov To: netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski Cc: Eric Dumazet , Willem de Bruijn , linux-kernel@vger.kernel.org, Paolo Abeni , Pavel Begunkov Subject: [PATCH net-next v2 06/10] ipv6: pass full cork into __ip6_append_data() Date: Thu, 27 Jan 2022 00:36:27 +0000 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert a struct inet_cork argument in __ip6_append_data() to struct inet_cork_full. As one struct contains another inet_cork is still can be accessed via ->base field. It's a preparation patch making further changes a bit cleaner. Signed-off-by: Pavel Begunkov --- net/ipv6/ip6_output.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index b8fdda9ac797..62da09819750 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1424,7 +1424,7 @@ static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, static int __ip6_append_data(struct sock *sk, struct flowi6 *fl6, struct sk_buff_head *queue, - struct inet_cork *cork, + struct inet_cork_full *cork_full, struct inet6_cork *v6_cork, struct page_frag *pfrag, int getfrag(void *from, char *to, int offset, @@ -1433,6 +1433,7 @@ static int __ip6_append_data(struct sock *sk, unsigned int flags, struct ipcm6_cookie *ipc6) { struct sk_buff *skb, *skb_prev = NULL; + struct inet_cork *cork = &cork_full->base; unsigned int maxfraglen, fragheaderlen, mtu, orig_mtu, pmtu; struct ubuf_info *uarg = NULL; int exthdrlen = 0; @@ -1797,7 +1798,7 @@ int ip6_append_data(struct sock *sk, transhdrlen = 0; } - return __ip6_append_data(sk, fl6, &sk->sk_write_queue, &inet->cork.base, + return __ip6_append_data(sk, fl6, &sk->sk_write_queue, &inet->cork, &np->cork, sk_page_frag(sk), getfrag, from, length, transhdrlen, flags, ipc6); } @@ -1993,7 +1994,7 @@ struct sk_buff *ip6_make_skb(struct sock *sk, if (ipc6->dontfrag < 0) ipc6->dontfrag = inet6_sk(sk)->dontfrag; - err = __ip6_append_data(sk, fl6, &queue, &cork->base, &v6_cork, + err = __ip6_append_data(sk, fl6, &queue, cork, &v6_cork, ¤t->task_frag, getfrag, from, length + exthdrlen, transhdrlen + exthdrlen, flags, ipc6); -- 2.34.1