OSDN Git Service

net: dpaa2: add adaptive interrupt coalescing
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 15 Oct 2021 09:01:27 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 13:32:41 +0000 (14:32 +0100)
commitfc398bec03879a7469f0c8e16567698b7d5d814c
tree3c0ece069ddb593aae8548e01fb21992a1cdb2c3
parent69651bd8d303e0b4d160569de37d04512acd6b2f
net: dpaa2: add adaptive interrupt coalescing

Add support for adaptive interrupt coalescing to the dpaa2-eth driver.
First of all, ETHTOOL_COALESCE_USE_ADAPTIVE_RX is defined as a supported
coalesce parameter and the requested state is configured through the
dpio APIs added in the previous patch.

Besides the ethtool API interaction, we keep track of how many bytes and
frames are dequeued per CDAN (Channel Data Availability Notification)
and update the Net DIM instance through the dpaa2_io_update_net_dim()
API.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c