fm10k: optimize legacy TX func
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
@@ -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
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.
Signed-off-by Chen Jing D(Mark) <[email protected]>--- 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
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
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 funcQuoted 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.
Signed-off-by Chen Jing D(Mark) <[email protected]>--- 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
-0doc/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.
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.
Signed-off-by Chen Jing D(Mark) <[email protected]>
Bruce Richardson
AppliedQuoted 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 funcFrom: "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.
Signed-off-by Chen Jing D(Mark) <[email protected]>Acked-by Shaopeng He <[email protected]>
Applied to dpdk-next-net/rel_16_04
/Bruce