From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH v2 02/29] net/mlx4: replace bit-field type Date: Thu, 12 Oct 2017 14:19:16 +0200 Message-ID: <7ebb68df6a5819e216db5a2646a94367f1622a1e.1507809961.git.adrien.mazarguil@6wind.com> References: Cc: Nelio Laranjeiro , dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id E42831B294 for ; Thu, 12 Oct 2017 14:20:06 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id f4so12852612wme.0 for ; Thu, 12 Oct 2017 05:20:06 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Make clear it's 32-bit wide. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index 9bd2acc..71cbced 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h @@ -100,10 +100,10 @@ struct priv { /* Device properties. */ uint16_t mtu; /* Configured MTU. */ uint8_t port; /* Physical port number. */ - unsigned int started:1; /* Device started, flows enabled. */ - unsigned int vf:1; /* This is a VF device. */ - unsigned int intr_alarm:1; /* An interrupt alarm is scheduled. */ - unsigned int isolated:1; /* Toggle isolated mode. */ + uint32_t started:1; /* Device started, flows enabled. */ + uint32_t vf:1; /* This is a VF device. */ + uint32_t intr_alarm:1; /* An interrupt alarm is scheduled. */ + uint32_t isolated:1; /* Toggle isolated mode. */ struct rte_intr_handle intr_handle; /* Port interrupt handle. */ struct rte_flow_drop *flow_drop_queue; /* Flow drop queue. */ LIST_HEAD(mlx4_flows, rte_flow) flows; -- 2.1.4