From nobody Fri Apr 19 14:23:55 2024 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a05:6638:d02:0:0:0:0 with SMTP id q2csp99981jaj; Thu, 2 Sep 2021 07:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuixv+2EEllKUMLx5hDL5Sm1pU1pED4FYR1c6X2JsRCmrsmX4tftPB38eustqspVG/bzeH X-Received: by 2002:a67:cb11:: with SMTP id b17mr1877841vsl.6.1630592450473; Thu, 02 Sep 2021 07:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630592450; cv=none; d=google.com; s=arc-20160816; b=SBZpR1DcKD1tAEEuG6vqFlTzZxcaZM4+U5DxJQKBfVVpJ6wPCPpagkQCd7RiZwlaev YO8sZxsD6BWm0pkir7vwS8ybEyHVw5b+dITEFbndwAwO3Ox9+z9vpYIboLDd/rBgmcvT gI36AbmRWZJW3dRbfXKyhLam4cQFqQve7TDeatS9SGO+xdhKdKCsRFLgQ2cP3Bbr1Kc+ h90cpf8ELg/plkf02WZng14PczM1uIUX1pVzGUTCPN/SFykTzDKw13l06lZ3rN9YhTEr O7JuC45zr2RzwyukLes/YquW/SEJ0Vtz0QMAmUoQkNtyBwT8FOUXrB9Lh6Kb3HWvf3HU WutQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=5mDJU6NE9VaROPqiItmVTwgDB2WVu7JPOayM+M/8Tak=; b=bg4qTcCqdn/DaO2QvlSFEkLm8qEh/ACPtkuYxZ/7GMJAqyuMgsKU/ObH09ba7b5luI oXT+5dYKhnV3j+2cYDqB3I/z6QihnS5ezmJ2vjPfH46rbUwbhnYPmrR5DyiOC/Gl0nNT OCe0/jjGPdZvD5kt2xBaazEm2HTOCyA93LsF+mgGVLqQ2YTQhwO8Hnxb4SGqQ0EqZW9C TcH13tp9gXC2YpUFH8BT7lFrUpgf+iMRthDP335K2BCqHq78WUv69fnNlZE3KnNHGKxj BMoISQyUsfoDhrXKvtSbYnKHNTWA7nIkk/qO6GCQhX1fyspdFDaaNrd/2qii64MISxo9 lMUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ivPMN3cR; spf=pass (google.com: domain of mptcp+bounces-1811-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) smtp.mailfrom="mptcp+bounces-1811-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sjc.edge.kernel.org (sjc.edge.kernel.org. [2604:1380:1000:8100::1]) by mx.google.com with ESMTPS id l1si689656vsj.297.2021.09.02.07.20.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Sep 2021 07:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of mptcp+bounces-1811-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) client-ip=2604:1380:1000:8100::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ivPMN3cR; spf=pass (google.com: domain of mptcp+bounces-1811-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) smtp.mailfrom="mptcp+bounces-1811-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sjc.edge.kernel.org (Postfix) with ESMTPS id 2D0973E0F33 for ; Thu, 2 Sep 2021 14:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 713B52FB3; Thu, 2 Sep 2021 14:20:48 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56D4E29CA for ; Thu, 2 Sep 2021 14:20:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630592446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5mDJU6NE9VaROPqiItmVTwgDB2WVu7JPOayM+M/8Tak=; b=ivPMN3cR5nMp6I5sl2LSSeVDLwzXwn2vL7LKLVs6oSXpIloXpime7++6KniCtIlrzfnz1Y e2CknR4jdSXGv8cWNk8vbUvrmtSsKVLCDxSqZaJSJyZ4y8URp2SCxpao0ObBE3mGjoi8sM AZuY7TrC105Wf7Br/mLe58cRgedajvQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-283-KMqgrBw1MNiwz8i9PTCxNw-1; Thu, 02 Sep 2021 10:20:45 -0400 X-MC-Unique: KMqgrBw1MNiwz8i9PTCxNw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 760D0DF8A3 for ; Thu, 2 Sep 2021 14:20:44 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.39.194.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id E06C21042A40 for ; Thu, 2 Sep 2021 14:20:43 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.linux.dev Subject: [PATCH mptcp-next 1/4] tcp: expose the tcp_mark_push() and skb_entail() helpers Date: Thu, 2 Sep 2021 16:20:29 +0200 Message-Id: <1c29a0077ea95b4429a3dd82a4ea3ec826b3ae99.1630591985.git.pabeni@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pabeni@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" They will be used by the next patch. Signed-off-by: Paolo Abeni --- include/net/tcp.h | 2 ++ net/ipv4/tcp.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index 3166dc15d7d6..dc52ea8adfc7 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -581,6 +581,8 @@ __u32 cookie_v6_init_sequence(const struct sk_buff *skb= , __u16 *mss); #endif /* tcp_output.c */ =20 +void skb_entail(struct sock *sk, struct sk_buff *skb); +void tcp_mark_push(struct tcp_sock *tp, struct sk_buff *skb); void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss, int nonagle); int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs); diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index e8b48df73c85..7a3e632b0048 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -647,7 +647,7 @@ int tcp_ioctl(struct sock *sk, int cmd, unsigned long a= rg) } EXPORT_SYMBOL(tcp_ioctl); =20 -static inline void tcp_mark_push(struct tcp_sock *tp, struct sk_buff *skb) +void tcp_mark_push(struct tcp_sock *tp, struct sk_buff *skb) { TCP_SKB_CB(skb)->tcp_flags |=3D TCPHDR_PSH; tp->pushed_seq =3D tp->write_seq; @@ -658,7 +658,7 @@ static inline bool forced_push(const struct tcp_sock *t= p) return after(tp->write_seq, tp->pushed_seq + (tp->max_window >> 1)); } =20 -static void skb_entail(struct sock *sk, struct sk_buff *skb) +void skb_entail(struct sock *sk, struct sk_buff *skb) { struct tcp_sock *tp =3D tcp_sk(sk); struct tcp_skb_cb *tcb =3D TCP_SKB_CB(skb); --=20 2.26.3