From patchwork Fri Mar 27 19:58:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mat Martineau X-Patchwork-Id: 1262978 X-Patchwork-Delegate: matthieu.baerts@tessares.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.01.org (client-ip=2001:19d0:306:5::1; helo=ml01.01.org; envelope-from=mptcp-bounces@lists.01.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from ml01.01.org (ml01.01.org [IPv6:2001:19d0:306:5::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48pt2l3ZvQz9sRY for ; Sat, 28 Mar 2020 06:58:37 +1100 (AEDT) Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8820210FC341D; Fri, 27 Mar 2020 12:59:23 -0700 (PDT) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=mathew.j.martineau@linux.intel.com; receiver= Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BF35B1007B188 for ; Fri, 27 Mar 2020 12:59:21 -0700 (PDT) IronPort-SDR: zyfeomxSq0eudt3/Wd/RHF3fCGARPFZsqOYHqMOsx4ZXlzbdqNeGKKP79vYjYacT5lEcXVZkxi 02bR0VQIQVjw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2020 12:58:31 -0700 IronPort-SDR: Vnfthcd15KvJuE6bnpSm9eMV5dawZ+WLnjPRbF6KIrL52BXoz+xWHZLuJjk7LPkfjQu9cFpFaN PX9IY+kvEBlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,313,1580803200"; d="scan'208";a="266314723" Received: from mjmartin-nuc02.mjmartin-nuc02 (HELO mjmartin-nuc02.sea.intel.com) ([10.251.7.195]) by orsmga002.jf.intel.com with ESMTP; 27 Mar 2020 12:58:31 -0700 From: Mat Martineau To: mptcp@lists.01.org Cc: Mat Martineau , Davide Caratti Date: Fri, 27 Mar 2020 12:58:17 -0700 Message-Id: <20200327195817.122912-1-mathew.j.martineau@linux.intel.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Message-ID-Hash: 344DQWMIXMP26Z2TYZMFXENB7YQV6BCH X-Message-ID-Hash: 344DQWMIXMP26Z2TYZMFXENB7YQV6BCH X-MailFrom: mathew.j.martineau@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Subject: [MPTCP] [PATCH] squashto: mptcp: allow dumping subflow context to userspace List-Id: Discussions regarding MPTCP upstreaming Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Use bit macros appropriate for userspace. Suggested-by: Davide Caratti Signed-off-by: Mat Martineau --- include/uapi/linux/mptcp.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/uapi/linux/mptcp.h b/include/uapi/linux/mptcp.h index c564140d20f0..8acc78b7ca7c 100644 --- a/include/uapi/linux/mptcp.h +++ b/include/uapi/linux/mptcp.h @@ -4,15 +4,15 @@ #include -#define MPTCP_SUBFLOW_FLAG_MCAP_REM BIT(0) -#define MPTCP_SUBFLOW_FLAG_MCAP_LOC BIT(1) -#define MPTCP_SUBFLOW_FLAG_JOIN_REM BIT(2) -#define MPTCP_SUBFLOW_FLAG_JOIN_LOC BIT(3) -#define MPTCP_SUBFLOW_FLAG_BKUP_REM BIT(4) -#define MPTCP_SUBFLOW_FLAG_BKUP_LOC BIT(5) -#define MPTCP_SUBFLOW_FLAG_FULLY_ESTABLISHED BIT(6) -#define MPTCP_SUBFLOW_FLAG_CONNECTED BIT(7) -#define MPTCP_SUBFLOW_FLAG_MAPVALID BIT(8) +#define MPTCP_SUBFLOW_FLAG_MCAP_REM _BITUL(0) +#define MPTCP_SUBFLOW_FLAG_MCAP_LOC _BITUL(1) +#define MPTCP_SUBFLOW_FLAG_JOIN_REM _BITUL(2) +#define MPTCP_SUBFLOW_FLAG_JOIN_LOC _BITUL(3) +#define MPTCP_SUBFLOW_FLAG_BKUP_REM _BITUL(4) +#define MPTCP_SUBFLOW_FLAG_BKUP_LOC _BITUL(5) +#define MPTCP_SUBFLOW_FLAG_FULLY_ESTABLISHED _BITUL(6) +#define MPTCP_SUBFLOW_FLAG_CONNECTED _BITUL(7) +#define MPTCP_SUBFLOW_FLAG_MAPVALID _BITUL(8) enum { MPTCP_SUBFLOW_ATTR_UNSPEC,