net: dovetail: Restore accidentally lost mp_ops cleanup
PATCH 1/1 net: dovetail: Restore accidentally lost mp_ops cleanup
From: Jan Kiszka <[email protected]>
---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)
net/core/page_pool.c +5 -0
@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) { + pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif
Signature · 1 line
2.47.3
Philippe Gerum
AppliedQuoted 17 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")Signed-off-by Jan Kiszka <[email protected]>---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)net/core/page_pool.c +0
-0@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)
net/core/page_pool.c static void page_pool_uninit(struct page_pool *pool) · line 348
Quoted 10 lines
net/core/page_pool.c +5
-0free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) { + pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif
Merged into 7.2, thanks. Noted for 7.3.
Signature · 1 line
Philippe.
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")Signed-off-by Jan Kiszka <[email protected]>---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)net/core/page_pool.c +2
-0@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) {
Quoted 9 lines
net/core/page_pool.c static void page_pool_uninit(struct page_pool *pool) · line 348
Quoted 6 lines
net/core/page_pool.c +3
-0+ pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif Merged into 7.2, thanks. Noted for 7.3.
I think you accidentally pushed the update as "7.2-evl-dovetail" to linux-dovetail.
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Quoted 34 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")Signed-off-by Jan Kiszka <[email protected]>---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)net/core/page_pool.c +2
-0@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) {Quoted 9 lines
net/core/page_pool.c static void page_pool_uninit(struct page_pool *pool) · line 348
Quoted 6 lines
net/core/page_pool.c +3
-0+ pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif Merged into 7.2, thanks. Noted for 7.3.
Quoted 3 lines
I think you accidentally pushed the update as "7.2-evl-dovetail" to linux-dovetail.
Yep, sorry for that. Fixed now.
Signature · 1 line
Philippe.
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")Signed-off-by Jan Kiszka <[email protected]>---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)net/core/page_pool.c +2
-0@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) {
Quoted 9 lines
net/core/page_pool.c static void page_pool_uninit(struct page_pool *pool) · line 348
Quoted 6 lines
net/core/page_pool.c +3
-0+ pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif Merged into 7.2, thanks. Noted for 7.3.
...but forgotten now (AI finding): please apply to v7.3.
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Quoted 34 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")Signed-off-by Jan Kiszka <[email protected]>---
Should go into 7.3 as well.
net/core/page_pool.c | 5 +++++ 1 file changed, 5 insertions(+)net/core/page_pool.c +2
-0@@ -338,6 +338,11 @@ static void page_pool_uninit(struct page_pool *pool)if (!pool->system)free_percpu (pool->recycle_stats);#endif + +if (pool->mp_ops) {Quoted 9 lines
net/core/page_pool.c static void page_pool_uninit(struct page_pool *pool) · line 348
Quoted 6 lines
net/core/page_pool.c +3
-0+ pool->mp_ops->destroy (pool); +static_branch_dec (&page_pool_mem_providers); + }#ifdef CONFIG_PAGE_POOL_OOB kfree (pool->alloc.cache);#endif Merged into 7.2, thanks. Noted for 7.3.
Quoted 2 lines
...but forgotten now (AI finding): please apply to v7.3.
Oopsie! Done.
Signature · 1 line
Philippe.