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 F2D9645B5F; Thu, 17 Oct 2024 16:22:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FF744066C; Thu, 17 Oct 2024 16:22:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id C796140611 for ; Thu, 17 Oct 2024 16:22:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729174957; x=1760710957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=80XdXLdIXKW76zm+ab7/PiE4/m2/5tLLjlrDj8P+Ms4=; b=VaJbs5u4zkCp0yBQIyj/VlEfFYGwOavPgfCr1k2Nt9aImD8ZyaCqEToZ ZvH/2SnPUd+08hE8mIz5Mkxn6/k9D0wVdNxoL41yOyn28zqt1R0kjQJLA vR7xaWwAlvn9hU4AJF6mEM3D/YXj7PUGtJCSbiqHjnxczkSTzxIqTH35L en3uG9lfvhGDpcILo2mXWmot42yMOqjn0zssx4XnVZ5VfELI1YGSmH1O+ WJtzxyE6taEWZl4PxhqAXc7ECIfsMd1dAQPUygNWa3HUIoDf4XvIiNGN5 qdJ6dZ8WbWEtQ5UOsVbnbBvZz5HGyrmVC3+nwHAXDfD5lsmnD5pH36Vbu g==; X-CSE-ConnectionGUID: tIMVtA9jRrq85TO5VirupA== X-CSE-MsgGUID: s5goyfF3RTG/jyAa8xZwZg== X-IronPort-AV: E=McAfee;i="6700,10204,11228"; a="28131726" X-IronPort-AV: E=Sophos;i="6.11,211,1725346800"; d="scan'208";a="28131726" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2024 07:22:36 -0700 X-CSE-ConnectionGUID: qEZ4h/qEQoylY3lJPaaCQQ== X-CSE-MsgGUID: sng/3cgoS7uqxjbqZq9jaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,211,1725346800"; d="scan'208";a="101867845" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa002.fm.intel.com with ESMTP; 17 Oct 2024 07:22:35 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Cristian Dumitrescu Subject: [PATCH 4/6] pipeline: remove packed attribute Date: Thu, 17 Oct 2024 15:22:11 +0100 Message-ID: <20241017142214.1669370-5-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241017142214.1669370-1-bruce.richardson@intel.com> References: <20241017142214.1669370-1-bruce.richardson@intel.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 The rte_trtcm_data structure, and its substructures, only consist of uint64_t types. This makes packing unnecessary to remove the packed attribute from the structure. Signed-off-by: Bruce Richardson --- lib/pipeline/rte_table_action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/rte_table_action.c b/lib/pipeline/rte_table_action.c index 87c3e0e2c9..b3c77dbf66 100644 --- a/lib/pipeline/rte_table_action.c +++ b/lib/pipeline/rte_table_action.c @@ -109,7 +109,7 @@ mtr_cfg_check(struct rte_table_action_mtr_config *mtr) struct mtr_trtcm_data { struct rte_meter_trtcm trtcm; uint64_t stats[RTE_COLORS]; -} __rte_packed; +}; #define MTR_TRTCM_DATA_METER_PROFILE_ID_GET(data) \ (((data)->stats[RTE_COLOR_GREEN] & 0xF8LLU) >> 3) -- 2.43.0