Skip to content

Commit f1c1f82

Browse files
lrw514raslandarawsheh
authored andcommitted
net/mlx5: remove counter alignment
The memory footprint was increased due to the alignment. Fixes: 820ca73 ("net/mlx5: fix flow aging race condition") Signed-off-by: Rongwei Liu <[email protected]> Acked-by: Dariusz Sosnowski <[email protected]>
1 parent f7e1178 commit f1c1f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/mlx5/mlx5_hws_cnt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct mlx5_hws_cnt_dcs_mng {
4343
};
4444

4545
union mlx5_hws_cnt_state {
46-
alignas(RTE_CACHE_LINE_SIZE) RTE_ATOMIC(uint32_t)data;
46+
RTE_ATOMIC(uint32_t) data;
4747
struct {
4848
uint32_t in_used:1;
4949
/* Indicator whether this counter in used or in pool. */
@@ -64,7 +64,7 @@ struct mlx5_hws_cnt {
6464
struct flow_counter_stats reset;
6565
union mlx5_hws_cnt_state cnt_state;
6666
/* This struct is only meaningful when user own this counter. */
67-
alignas(RTE_CACHE_LINE_SIZE) RTE_ATOMIC(uint32_t)query_gen_when_free;
67+
RTE_ATOMIC(uint32_t) query_gen_when_free;
6868
/*
6969
* When PMD own this counter (user put back counter to PMD
7070
* counter pool, i.e), this field recorded value of counter

0 commit comments

Comments
 (0)