From nobody Sun Feb 8 17:46:49 2026 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a05:6638:3394:0:0:0:0 with SMTP id h20csp744768jav; Wed, 27 Oct 2021 14:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn3CrUl7wB5qNGpRcYyiIdHegFt0+bLA2ZzyJsKuUlAEYEpIUtnlYmSg5cQZARzSG0aIiL X-Received: by 2002:a05:6102:275a:: with SMTP id p26mr199111vsu.47.1635368761822; Wed, 27 Oct 2021 14:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635368761; cv=none; d=google.com; s=arc-20160816; b=BpEOiGq7+rGETqoqeJpiBeFTrlQiW3RnKJj2WUQwfcdjB0yLv+UC4L/2z6UClOBLkQ U1lfzDDb8BcW/TeAK44ukLI71Qn3r9Q+uMRnweZXLSJcELOXzraU5deZwgYeKGtTHTBr TNUElTv3fz0dbbuSbK9HKsO1oqu7i1k7CKZ1vqknwBtIHR2UaYXOyLv8sShBEWHEAOeE kfLev2AM8FbXTNY7KkW28SHKgi6jUCJIgZwjnMf7nydy8znarUr71sVZGwwSHqoogTRX EbKJaSPDvdAhOYcjWb/9eestTvmrtfq+oAbz4aVnqmMz4hvi0jiNO0B+6wrW9/u//n0B pc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=q8a6W9h5WD71UvBu3ruegFb2ddtPSbP0W5iIL1R7vWQ=; b=BJqGGfuAwnG/hW/IGRSauoEMpt1Db0HTC7RNYdcT6K3uurWt6QTkzLqMSlzoMXS63s DSdbB09+RY6anAMaz53/+nFIeD2Eo/1BpOL+YBYag9cNMyV4hWVrV0oPD/o1JS4RYDEz 524oNJzSy4MGMHhGhE34v6mRBK1+ModZ4nwQaNLm1IMPdxs/A/ngOGgPhbOQVM2FPKEw 923iq44xyWbOCWtY9jiaxs7htZj7trQmTZJKOomeliWii6yfghks3WUtrnyEiYUlfAW8 Gx7P5jgh+kgqJICJiVrzOsyphhrPkRKSjey4v8cDigyOo/f0kQMFO7Ujjwu7MGbymAg5 QQsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJmlJk0t; spf=pass (google.com: domain of mptcp+bounces-2290-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2290-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ewr.edge.kernel.org (ewr.edge.kernel.org. [2604:1380:1:3600::1]) by mx.google.com with ESMTPS id q26si1550710vsl.195.2021.10.27.14.06.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Oct 2021 14:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of mptcp+bounces-2290-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) client-ip=2604:1380:1:3600::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJmlJk0t; spf=pass (google.com: domain of mptcp+bounces-2290-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2290-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 ewr.edge.kernel.org (Postfix) with ESMTPS id AD1BD1C0788 for ; Wed, 27 Oct 2021 21:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80E952CA4; Wed, 27 Oct 2021 21:05:59 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 E32C82C9F for ; Wed, 27 Oct 2021 21:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635368756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=q8a6W9h5WD71UvBu3ruegFb2ddtPSbP0W5iIL1R7vWQ=; b=GJmlJk0t7dQTWVlh9ZnFKguDlDX0fIX/7+6UBUIDYTCrZVfwC1p797oZde7SUDoJiaCgpw PwpJxWN0VDf4LHJvOaprM26FaysfrDd9AJFbyHWtJ69eBVqMtqt9QV3kFc5NA/BSJ/kbDx xCjRdicAi0CReYt+VqGrRQ/rC6kc4ls= 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-180-XBdv90R_OVqLtfaDuQMXFA-1; Wed, 27 Oct 2021 17:05:53 -0400 X-MC-Unique: XBdv90R_OVqLtfaDuQMXFA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D0205100C609; Wed, 27 Oct 2021 21:05:52 +0000 (UTC) Received: from nst.lab.eng.brq.redhat.com (nst.lab.eng.brq.redhat.com [10.37.153.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA3375C1B4; Wed, 27 Oct 2021 21:05:51 +0000 (UTC) From: Poorva Sonparote To: mptcp@lists.linux.dev Cc: mathew.j.martineau@linux.intel.com, matthieu.baerts@tessares.net Subject: [PATCH mptcp-next v4 1/2] Exposing __ip_sock_set_tos() in ip.h Date: Wed, 27 Oct 2021 21:05:06 +0000 Message-Id: <5d4f5b701e2cfe730d3249260f3eac82784fdd0f.1635367735.git.psonparo@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=psonparo@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Making the static function __ip_sock_set_tos() from net/ipv4/ip_sockglue.c accessible by declaring it in include/net/ip.h The reason for doing this is to use this function to set IP_TOS value in mptcp_setsockopt() without the lock. Signed-off-by: Poorva Sonparote --- include/net/ip.h | 1 + net/ipv4/ip_sockglue.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/net/ip.h b/include/net/ip.h index cf229a531194..3d65a3be10e7 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -789,5 +789,6 @@ int ip_sock_set_mtu_discover(struct sock *sk, int val); void ip_sock_set_pktinfo(struct sock *sk); void ip_sock_set_recverr(struct sock *sk); void ip_sock_set_tos(struct sock *sk, int val); +void __ip_sock_set_tos(struct sock *sk, int val); =20 #endif /* _IP_H */ diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index b297bb28556e..7fd83f14daae 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -576,7 +576,7 @@ int ip_recv_error(struct sock *sk, struct msghdr *msg, = int len, int *addr_len) return err; } =20 -static void __ip_sock_set_tos(struct sock *sk, int val) +void __ip_sock_set_tos(struct sock *sk, int val) { if (sk->sk_type =3D=3D SOCK_STREAM) { val &=3D ~INET_ECN_MASK; --=20 2.18.2