Skip to contentSkip to conversation

fm10k: optimize legacy TX func

PATCH Applied Chen Jing D(Mark) 3 participants 5 messages Jan 28, 2016 – Feb 24, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fm10k: optimize legacy TX func

From: "Chen Jing D(Mark)" <[email protected]>

When legacy TX func tries to free a bunch of mbufs, it will free them one by one. This change will scan the free list and merge the requests in case they belongs to same pool, then free once, which will reduce cycles on freeing mbufs.

---
 doc/guides/rel_notes/release_2_3.rst |    2 +
 drivers/net/fm10k/fm10k_rxtx.c       |   59 ++++++++++++++++++++++++++++-----
 2 files changed, 52 insertions(+), 9 deletions(-)
doc/guides/rel_notes/release_2_3.rst +2 -0
index 99de186..20ce78d 100644
@@ -3,7 +3,9 @@ DPDK Release 2.3
 
 New Features
 ------------
+* **Optimize fm10k Tx func.**
 
+  * Free multiple mbufs at a time to reduce freeing mbuf cycles.
 
 Resolved Issues
 ---------------
drivers/net/fm10k/fm10k_rxtx.c +50 -9

77 lines not on this page · raw message

Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 18 lines · Chen Jing D(Mark)

From: "Chen Jing D(Mark)" <[email protected]>

When legacy TX func tries to free a bunch of mbufs, it will free them one by one. This change will scan the free list and merge the requests in case they belongs to same pool, then free once, which will reduce cycles on freeing mbufs.

---
 doc/guides/rel_notes/release_2_3.rst |    2 +
 drivers/net/fm10k/fm10k_rxtx.c       |   59 ++++++++++++++++++++++++++++-----
 2 files changed, 52 insertions(+), 9 deletions(-)
doc/guides/rel_notes/release_2_3.rst +0 -0
index 99de186..20ce78d 100644

doc/guides/rel_notes/release_2_3.rst DPDK Release 2.3 · line 9

Quoted 7 lines
doc/guides/rel_notes/release_2_3.rst +2 -0
@@ -3,7 +3,9 @@ DPDK Release 2.3
 
 New Features
 ------------
+* **Optimize fm10k Tx func.**
 
+  * Free multiple mbufs at a time to reduce freeing mbuf cycles.
 

Is this really a significant enough change to warrant being called out in the release notes?
Personally, I don't think so, so if you are ok with it, I'll just apply this patch without the RN update.

/Bruce

#2 lore raw

Hi, Bruce,

Quoted 41 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Tuesday, February 16, 2016 11:28 PM
To: Chen, Jing D
Cc: Qiu, Michael; Ananyev, Konstantin; [email protected]
Subject: Re: [dpdk-dev] [PATCH] fm10k: optimize legacy TX func

Quoted 11 lines · Chen Jing D(Mark)

From: "Chen Jing D(Mark)" <[email protected]>

When legacy TX func tries to free a bunch of mbufs, it will free them one by one. This change will scan the free list and merge the requests in case they belongs to same pool, then free once, which will reduce cycles on freeing mbufs.

---
 doc/guides/rel_notes/release_2_3.rst |    2 +
 drivers/net/fm10k/fm10k_rxtx.c       |   59

++++++++++++++++++++++++++++-----

Quoted 8 lines
 2 files changed, 52 insertions(+), 9 deletions(-)
doc/guides/rel_notes/release_2_3.rst +0 -0
index 99de186..20ce78d 100644

doc/guides/rel_notes/release_2_3.rst DPDK Release 2.3 · line 9

Quoted 7 lines
doc/guides/rel_notes/release_2_3.rst +2 -0
@@ -3,7 +3,9 @@ DPDK Release 2.3
 
 New Features
 ------------
+* **Optimize fm10k Tx func.**
 
+  * Free multiple mbufs at a time to reduce freeing mbuf cycles.
 

Is this really a significant enough change to warrant being called out in the release notes?
Personally, I don't think so, so if you are ok with it, I'll just apply this patch without the RN update.

Quoted 1 line

/Bruce

This change will have some performance gain with legacy TX func. That's why I'd like to add a line in release notes.
If you thinks it's not necessary, please kindly remove it.

Acked-by on v1 1/1
#3 lore raw
In reply to Chen Jing D(Mark)

Hi,

Quoted 7 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Chen Jing D(Mark)
Sent: Thursday, January 28, 2016 5:46 PM
To: Qiu, Michael; Ananyev, Konstantin
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] fm10k: optimize legacy TX func

Quoted 8 lines

From: "Chen Jing D(Mark)" <[email protected]>

When legacy TX func tries to free a bunch of mbufs, it will free them one by one. This change will scan the free list and merge the requests in case they belongs to same pool, then free once, which will reduce cycles on freeing mbufs.

#4 lore raw
Quoted 11 lines · Shaopeng

Hi,

Quoted 9 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Chen Jing D(Mark)
Sent: Thursday, January 28, 2016 5:46 PM
To: Qiu, Michael; Ananyev, Konstantin
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] fm10k: optimize legacy TX func

From: "Chen Jing D(Mark)" <[email protected]>

Quoted 7 lines
Quoted 6 lines

When legacy TX func tries to free a bunch of mbufs, it will free them one by one. This change will scan the free list and merge the requests in case they belongs to same pool, then free once, which will reduce cycles on freeing mbufs.

Applied to dpdk-next-net/rel_16_04

/Bruce