]> git.baikalelectronics.ru Git - kernel.git/commit
soc: fsl: dpio: add Net DIM integration
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 15 Oct 2021 09:01:26 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 13:32:41 +0000 (14:32 +0100)
commit0844e5671c2593054acabef1cb4451837b0d2a74
tree3dac49bce615a375b39cd06e96d28f3657d18494
parentb6ee6613d75fb35a0abfbc2420c6f9ad354cced1
soc: fsl: dpio: add Net DIM integration

Use the generic dynamic interrupt moderation (dim) framework to
implement adaptive interrupt coalescing on Rx. With the per-packet
interrupt scheme, a high interrupt rate has been noted for moderate
traffic flows leading to high CPU utilization.

The dpio driver exports new functions to enable/disable adaptive IRQ
coalescing on a DPIO object, to query the state or to update Net DIM
with a new set of bytes and frames dequeued.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/soc/fsl/Kconfig
drivers/soc/fsl/dpio/dpio-service.c
drivers/soc/fsl/dpio/qbman-portal.h
include/soc/fsl/dpaa2-io.h