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 0E2D045BCB; Fri, 25 Oct 2024 18:51:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B79C4402F1; Fri, 25 Oct 2024 18:51:23 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id EC6A8402AE for ; Fri, 25 Oct 2024 18:51:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729875077; x=1761411077; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JuujEQulmaOQIXK/BDtvZLAXkILaGYTvbQPpUEBgPQ4=; b=GK9b4ArVyHsBi0hNSEfdqNGdkhY5qdeOi7n7q6UMOE/6uApatPHl7drq ZvqBQWHk/J2CnXMSM4XcNFfBEmjB+gCkxV2U1ZvrwapvMki/OdyP5T1oR uQ2N33egxFpD62bz9cIhGBEXBtcin0vp9eBDpqYxKasGakpfWoQbisPju G9vm6xA3LPG5VsVu64zYJcsElp+8EsnSzPBnZYG63QoU2w+e55l6IxMjq bHWzNPyyUe1iU1UQcP/yVuvJbmgeoYbtyiLd6rNRSimRNflE4LL1ChD84 Pe3L2+p/XKpZx6doYMe+qz6Lqt6cyQmFYc7Dgp4oTaJgB1sE/T1wf3GMp w==; X-CSE-ConnectionGUID: ZakZqTdbRIiHfs2cUBx4eQ== X-CSE-MsgGUID: 6wCzuIPNSOOGE7rmnZLeWw== X-IronPort-AV: E=McAfee;i="6700,10204,11236"; a="54956166" X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="54956166" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 09:50:41 -0700 X-CSE-ConnectionGUID: 1s+HaCFeSfqrE8loZeEy+A== X-CSE-MsgGUID: QDQxfD5+RxamLqQfzI0jqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="118417512" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 25 Oct 2024 09:50:40 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, Bruce Richardson , Stephen Hemminger , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Cristian Dumitrescu Subject: [PATCH v2 4/6] pipeline: remove packed attribute Date: Fri, 25 Oct 2024 17:50:17 +0100 Message-ID: <20241025165020.1856733-5-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241025165020.1856733-1-bruce.richardson@intel.com> References: <20241017142214.1669370-1-bruce.richardson@intel.com> <20241025165020.1856733-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Acked-by: Stephen Hemminger Acked-by: Morten Brørup --- 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 a7e63b9846..a431f8f128 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