mbox series

[0/4] l3fwd improvements

Message ID 20210318102550.59265-1-ruifeng.wang@arm.com (mailing list archive)
Headers
Series l3fwd improvements |

Message

Ruifeng Wang March 18, 2021, 10:25 a.m. UTC
  This series of patches include changes to l3fwd example application.
Some improvements are made for better usage of CPU cycles and memory.

Ruifeng Wang (4):
  examples/l3fwd: tune prefetch for better performance
  examples/l3fwd: eliminate unnecessary calculations
  examples/l3fwd: eliminate unnecessary reloads in loop
  examples/l3fwd: make data struct to be memory efficient

 examples/l3fwd/l3fwd.h          | 12 ++++++------
 examples/l3fwd/l3fwd_common.h   |  4 ++--
 examples/l3fwd/l3fwd_em.c       |  6 +++---
 examples/l3fwd/l3fwd_lpm.c      | 16 +++++++++-------
 examples/l3fwd/l3fwd_lpm_neon.h | 20 ++++++++++----------
 5 files changed, 30 insertions(+), 28 deletions(-)
  

Comments

Ruifeng Wang April 13, 2021, 8:24 a.m. UTC | #1
Hello,

This patch series targeted to improve L3fwd example. Performance gain was observed on N1SDP platform.

It would be good if you can run this series on your platforms and see if there is any performance impact.

Thanks,
Ruifeng

> -----Original Message-----
> From: Ruifeng Wang <ruifeng.wang@arm.com>
> Sent: Thursday, March 18, 2021 6:26 PM
> To: jerinj@marvell.com; hemant.agrawal@nxp.com; ferruh.yigit@intel.com;
> thomas@monjalon.net; david.marchand@redhat.com
> Cc: dev@dpdk.org; nd <nd@arm.com>; Honnappa Nagarahalli
> <Honnappa.Nagarahalli@arm.com>; Ruifeng Wang
> <Ruifeng.Wang@arm.com>
> Subject: [PATCH 0/4] l3fwd improvements
> 
> This series of patches include changes to l3fwd example application.
> Some improvements are made for better usage of CPU cycles and memory.
> 
> Ruifeng Wang (4):
>   examples/l3fwd: tune prefetch for better performance
>   examples/l3fwd: eliminate unnecessary calculations
>   examples/l3fwd: eliminate unnecessary reloads in loop
>   examples/l3fwd: make data struct to be memory efficient
> 
>  examples/l3fwd/l3fwd.h          | 12 ++++++------
>  examples/l3fwd/l3fwd_common.h   |  4 ++--
>  examples/l3fwd/l3fwd_em.c       |  6 +++---
>  examples/l3fwd/l3fwd_lpm.c      | 16 +++++++++-------
>  examples/l3fwd/l3fwd_lpm_neon.h | 20 ++++++++++----------
>  5 files changed, 30 insertions(+), 28 deletions(-)
> 
> --
> 2.25.1
  
Jerin Jacob April 13, 2021, 5:33 p.m. UTC | #2
On Tue, Apr 13, 2021 at 1:54 PM Ruifeng Wang <Ruifeng.Wang@arm.com> wrote:
>
> Hello,
>
> This patch series targeted to improve L3fwd example. Performance gain was observed on N1SDP platform.
>
> It would be good if you can run this series on your platforms and see if there is any performance impact.

I will test and update and update in the respective patches.

>
> Thanks,
> Ruifeng
>
> > -----Original Message-----
> > From: Ruifeng Wang <ruifeng.wang@arm.com>
> > Sent: Thursday, March 18, 2021 6:26 PM
> > To: jerinj@marvell.com; hemant.agrawal@nxp.com; ferruh.yigit@intel.com;
> > thomas@monjalon.net; david.marchand@redhat.com
> > Cc: dev@dpdk.org; nd <nd@arm.com>; Honnappa Nagarahalli
> > <Honnappa.Nagarahalli@arm.com>; Ruifeng Wang
> > <Ruifeng.Wang@arm.com>
> > Subject: [PATCH 0/4] l3fwd improvements
> >
> > This series of patches include changes to l3fwd example application.
> > Some improvements are made for better usage of CPU cycles and memory.
> >
> > Ruifeng Wang (4):
> >   examples/l3fwd: tune prefetch for better performance
> >   examples/l3fwd: eliminate unnecessary calculations
> >   examples/l3fwd: eliminate unnecessary reloads in loop
> >   examples/l3fwd: make data struct to be memory efficient
> >
> >  examples/l3fwd/l3fwd.h          | 12 ++++++------
> >  examples/l3fwd/l3fwd_common.h   |  4 ++--
> >  examples/l3fwd/l3fwd_em.c       |  6 +++---
> >  examples/l3fwd/l3fwd_lpm.c      | 16 +++++++++-------
> >  examples/l3fwd/l3fwd_lpm_neon.h | 20 ++++++++++----------
> >  5 files changed, 30 insertions(+), 28 deletions(-)
> >
> > --
> > 2.25.1
>
  
Ling, WeiX April 16, 2021, 9:39 a.m. UTC | #3
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Ruifeng Wang
> Sent: Thursday, March 18, 2021 06:26 PM
> To: jerinj@marvell.com; hemant.agrawal@nxp.com; Yigit, Ferruh
> <ferruh.yigit@intel.com>; thomas@monjalon.net;
> david.marchand@redhat.com
> Cc: dev@dpdk.org; nd@arm.com; honnappa.nagarahalli@arm.com; Ruifeng
> Wang <ruifeng.wang@arm.com>
> Subject: [dpdk-dev] [PATCH 0/4] l3fwd improvements
> 
Tested-by: Wei Ling <weix.ling@intel.com>