mbox series

[net-next,0/3] dpaa2-eth: use indirect call wrappers

Message ID 20210316144730.2150767-1-ciorneiioana@gmail.com
Headers show
Series dpaa2-eth: use indirect call wrappers | expand

Message

Ioana Ciornei March 16, 2021, 2:47 p.m. UTC
From: Ioana Ciornei <ioana.ciornei@nxp.com>

The dpaa2-eth driver uses two indirect calls in fast-path, one invoked
on each FD to consume the packet and one for each Tx packet to be
enqueued.

Use the indirect call wrappers infrastructure in both dpaa2-eth and
dpaa2-switch drivers so that we avoid any RETPOLINE overhead.

Ioana Ciornei (3):
  dpaa2-eth: use indirect calls wrapper for FD enqueue
  dpaa2-eth: use indirect calls wrapper for FD consume
  dpaa2-switch: use an indirect call wrapper instead of open-coding

 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c  | 15 +++++++++++----
 .../net/ethernet/freescale/dpaa2/dpaa2-switch.c   | 12 ++++++------
 .../net/ethernet/freescale/dpaa2/dpaa2-switch.h   |  1 +
 3 files changed, 18 insertions(+), 10 deletions(-)

Comments

Ioana Ciornei March 16, 2021, 4:44 p.m. UTC | #1
On Tue, Mar 16, 2021 at 04:47:27PM +0200, Ioana Ciornei wrote:
> From: Ioana Ciornei <ioana.ciornei@nxp.com>
> 
> The dpaa2-eth driver uses two indirect calls in fast-path, one invoked
> on each FD to consume the packet and one for each Tx packet to be
> enqueued.
> 
> Use the indirect call wrappers infrastructure in both dpaa2-eth and
> dpaa2-switch drivers so that we avoid any RETPOLINE overhead.

Please disregard these patches, somehow I failed to include all the
changes and it fails to build. Sorry.