[PATCH 4/6] pipeline: remove packed attribute
Bruce Richardson
bruce.richardson at intel.com
Thu Oct 17 16:22:11 CEST 2024
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 <bruce.richardson at intel.com>
---
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
More information about the dev
mailing list