diff options
| author | Alexander Lobakin <[email protected]> | 2024-06-20 13:53:35 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-07-10 17:28:23 +0000 |
| commit | 39daa09d34ada1bc7227d68def63e0a2105b5496 (patch) | |
| tree | dc294ce9e872dff6b48a3b2588784c36b6e39d99 /net/core/page_pool.c | |
| parent | cache: add __cacheline_group_{begin, end}_aligned() (+ couple more) (diff) | |
| download | kernel-39daa09d34ada1bc7227d68def63e0a2105b5496.tar.gz kernel-39daa09d34ada1bc7227d68def63e0a2105b5496.zip | |
page_pool: use __cacheline_group_{begin, end}_aligned()
Instead of doing __cacheline_group_begin() __aligned(), use the new
__cacheline_group_{begin,end}_aligned(), so that it will take care
of the group alignment itself.
Also replace open-coded `4 * sizeof(long)` in two places with
a definition.
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/core/page_pool.c')
| -rw-r--r-- | net/core/page_pool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 855271a6cad2..2abe6e919224 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -178,7 +178,8 @@ static void page_pool_struct_check(void) CACHELINE_ASSERT_GROUP_MEMBER(struct page_pool, frag, frag_users); CACHELINE_ASSERT_GROUP_MEMBER(struct page_pool, frag, frag_page); CACHELINE_ASSERT_GROUP_MEMBER(struct page_pool, frag, frag_offset); - CACHELINE_ASSERT_GROUP_SIZE(struct page_pool, frag, 4 * sizeof(long)); + CACHELINE_ASSERT_GROUP_SIZE(struct page_pool, frag, + PAGE_POOL_FRAG_GROUP_ALIGN); } static int page_pool_init(struct page_pool *pool, |
