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 3900045761; Wed, 7 Aug 2024 22:44:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11B4A41157; Wed, 7 Aug 2024 22:44:50 +0200 (CEST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mails.dpdk.org (Postfix) with ESMTP id D1F6140EE2 for ; Wed, 7 Aug 2024 22:44:48 +0200 (CEST) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2f15e48f35bso2661091fa.0 for ; Wed, 07 Aug 2024 13:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723063488; x=1723668288; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=duxRSD5WsNL6S1OePJ1NpKOtklG4pMS+yDrfnnh1EK4=; b=L1z+kqVgM84Pwy5qycBIhO/6UEtZ7UuV3UdS9lfezrGYJi8sErhDRvDveD90mq15Qx 1dNIvmJ/TCdYsAb9Q8ZmE7ng7sHpdSWcBdw683iJWn5AGd1crAWAIHk2vQcaYu/JhLpZ tpOorWdi8gtG3lXnes3iB1w65LAdtzFgU77HyOQubxlYvTE0axK07+gGbTUnH4CdovTL ix1XNUYG+DC7chJof7fXrf4H+j8kFNljjaFRuLDB2imJeuO3xVueUU4QNsvSz+Ffb6fB ZFf/noy9KYCT5Vw422xm9/douEoz3b+yLaYcl9yygvkwW89YXhCDkIb104ICbWYJ+Vy0 IX+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723063488; x=1723668288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=duxRSD5WsNL6S1OePJ1NpKOtklG4pMS+yDrfnnh1EK4=; b=VYI7AivrPD/5ZpSmYhBN3/FmKk4fBOovo2Sfug6M8Zdeoy+V4BgE+fKGrjVF41F8XE R+yvdCwXc04jziHRbvx/ccYgWVo8iDJSKSay8Pjj5LhzKtfCpYACpSaVBbsdNythZDw5 jXsK6Blvz+EYjof+QtuVIB4Eu6CG6+aZNyhLk6KpGY4pkaeXiVOxC9TKRCs6EAvnHG86 8rdhmTPISSfz7mrp6kmnX+kuGkUyJn3NJizw3RNEQmYtpvd53C+4ehFT31hRdYNSTWd3 /TtqNXtbxD4bi3TbvLnpsaOH4lZEERutcBMXTToeq1RvqgaLYXBrR2o7+t7LNIHfGKab xKhw== X-Gm-Message-State: AOJu0Yxhz2QVpFtb9rWictqihEehFGfci4m6XGPHdCKOacTGmJKLMXco lfNe46IOihiGwWMgTmK1qi6ZWsqPqI5gg8Vn6uDsPuZ8vIXpcZzvpr90Mw== X-Google-Smtp-Source: AGHT+IHH8CcN8u+a/a3BIhXhmz0d+ShEi3IwwexwTKWKtLECWNqxFkvJXPc3hXjZQmMD1gC0osD/UA== X-Received: by 2002:a2e:3815:0:b0:2ef:2dbe:7454 with SMTP id 38308e7fff4ca-2f15ab3995cmr134559781fa.43.1723063487793; Wed, 07 Aug 2024 13:44:47 -0700 (PDT) Received: from saturn.intmts.ru ([46.175.25.246]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f15e1c7581sm19102691fa.68.2024.08.07.13.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 13:44:47 -0700 (PDT) From: Igor Gutorov To: dev@dpdk.org Cc: Igor Gutorov Subject: [PATCH v3 2/2] common/mlx5: reduce HCA attribute type sizes Date: Wed, 7 Aug 2024 23:44:06 +0300 Message-ID: <20240807204406.700332-3-igootorov@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240807204406.700332-1-igootorov@gmail.com> References: <20240807204406.700332-1-igootorov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 A number of `log_max_*` fields' types are unnecessarily large, and can be reduced to `uint8_t`. Signed-off-by: Igor Gutorov --- drivers/common/mlx5/mlx5_devx_cmds.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h index 2ad9e5414f..f523bf8529 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.h +++ b/drivers/common/mlx5/mlx5_devx_cmds.h @@ -268,10 +268,10 @@ struct mlx5_hca_attr { struct mlx5_hca_flex_attr flex; struct mlx5_hca_crypto_mmo_attr crypto_mmo; uint8_t log_max_wq_sz; - int log_max_qp_sz; - int log_max_cq_sz; - int log_max_qp; - int log_max_cq; + uint8_t log_max_qp_sz; + uint8_t log_max_cq_sz; + uint8_t log_max_qp; + uint8_t log_max_cq; uint32_t log_max_pd; uint32_t log_max_mrw_sz; uint32_t log_max_srq; -- 2.45.2