• Claudiu Manoil's avatar
    enetc: Add interrupt coalescing support · 91571081
    Claudiu Manoil authored
    Enable programming of the interrupt coalescing registers
    and allow manual configuration of the coalescing time
    thresholds via ethtool.  Packet thresholds have been fixed
    to predetermined values as there's no point in making them
    run-time configurable, also anticipating the dynamic interrupt
    moderation (DIM) algorithm which uses fixed packet thresholds
    as well.  If the interface is up when the operation mode of
    traffic interrupt events is changed by the user (i.e. switching
    from default per-packet interrupts to coalesced interrupts),
    the traffic needs to be paused in the process.
    This patch also prepares the ground for introducing DIM on Rx.
    Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    91571081
enetc.h 10.2 KB