From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6850AA0C43; Fri, 22 Oct 2021 09:24:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E8834069D; Fri, 22 Oct 2021 09:24:57 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id 0E8374068C for ; Fri, 22 Oct 2021 09:24:56 +0200 (CEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D19E43200BD2; Fri, 22 Oct 2021 03:24:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 22 Oct 2021 03:24:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= yqNNq3zmFpXvj8Lw4dXFJS4uiecIGviaKkylcFJc3gM=; b=bGigBscCpKwNIHvc C3Cu2kmVCACGVo9qIcxdEcD29hTZzerec74o9fQU2roJmroGsI2rOTqzND143O3b d3VWU9aql8VjHrWoEA8dClRquWXWs4/rZIyCuhmafnUQJCg7Sp/VseHzOXA0EMC/ 7mLdNUDZ6MPHD0jKiUWToe+XVJVmChYTw56N0b53pirXaZNUWtwZYwlh44kib/sb MKXrK6EKLT80Ic7Kva/PGhL42FMosuPAhPavQS2qhslCWa3q+1pZmWibJcrvYOQ+ saSv3bqGDOkZJp1kw9UIqZHlDr4kewmZIhQ3y9FiGCIWT3KtgzGHt44beTKbqs2s xrhkXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=yqNNq3zmFpXvj8Lw4dXFJS4uiecIGviaKkylcFJc3 gM=; b=eCRNu6nAruaW6zpOGpVDQG2FjuOWwOcXSxcfd1WH8RyeCJ6AVJz5sXdbe XlKcjM4/QiBICZ/2Q5sZbsZ6q+xqJVSG29CCJPpj7mr81GhnIqEV3IPDnb3rC2ip PDulWJyjfB3zMDdJnyQ5eIsywQZ42AZwpSyienqrrlyjzNfvE4WxzM+ir05sXqoi d8ZcDO2QOjCfHfYxOaLX2hj3GQ7GmQIttdxlBB2tH7468MdzOxpA/VJdoUsxZrUm n/b4kG1trebGn3IOdkyMrJvjyaOw8txhHNu/2Dj3149n149BsRcpNrx2yByuphNf fWVC1JYtNfQPw86jYxJ5r55AStCHQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvjedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Oct 2021 03:24:52 -0400 (EDT) From: Thomas Monjalon To: Andrew Rybchenko Cc: Ferruh Yigit , dev@dpdk.org Date: Fri, 22 Oct 2021 09:24:51 +0200 Message-ID: <2364635.PxhEfK7eOE@thomas> In-Reply-To: <20211022072313.390612-1-andrew.rybchenko@oktetlabs.ru> References: <20211022072313.390612-1-andrew.rybchenko@oktetlabs.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] ethdev: replace single bit masks with macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/10/2021 09:23, Andrew Rybchenko: > /** PMD supports thread-safe flow operations */ > -#define RTE_ETH_DEV_FLOW_OPS_THREAD_SAFE 0x0001 > +#define RTE_ETH_DEV_FLOW_OPS_THREAD_SAFE RTE_BIT32(0) > /** Device supports link state interrupt */ > -#define RTE_ETH_DEV_INTR_LSC 0x0002 > +#define RTE_ETH_DEV_INTR_LSC RTE_BIT32(1) > /** Device is a bonded slave */ > -#define RTE_ETH_DEV_BONDED_SLAVE 0x0004 > +#define RTE_ETH_DEV_BONDED_SLAVE RTE_BIT32(2) > /** Device supports device removal interrupt */ > -#define RTE_ETH_DEV_INTR_RMV 0x0008 > +#define RTE_ETH_DEV_INTR_RMV RTE_BIT32(3) > /** Device is port representor */ > -#define RTE_ETH_DEV_REPRESENTOR 0x0010 > +#define RTE_ETH_DEV_REPRESENTOR RTE_BIT32(4) misalignment here > /** Device does not support MAC change after started */ > -#define RTE_ETH_DEV_NOLIVE_MAC_ADDR 0x0020 > +#define RTE_ETH_DEV_NOLIVE_MAC_ADDR RTE_BIT32(5)