Skip to contentSkip to conversation

net: dovetail: Restore accidentally lost mp_ops cleanup

PATCH Applied Jan Kiszka 2 participants 6 messages Nov 1 – Nov 25

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 net: dovetail: Restore accidentally lost mp_ops cleanup

From: Jan Kiszka <[email protected]>

Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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
#1 lore raw
Quoted 17 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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 -0
 		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

Merged into 7.2, thanks. Noted for 7.3.

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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
#3 lore raw
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")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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.
author
#4 lore raw
In reply to Philippe Gerum
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Fixes 2db757ed1c20 ("net: dovetail: enable out-of-band networking")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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
#5 lore raw
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")

---

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
index 13ef7c723a89c..6136471425fe3 100644
@@ -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.