eth: fbnic: Add ethtool support for IRQ coalescing (details)
Commit
7b5b7a597fbc19dacf6eefba3dd632a149a539b8
by kuba
eth: fbnic: Add ethtool support for IRQ coalescing
Add ethtool support to configure the IRQ coalescing behavior. Support separate timers for Rx and Tx for time based coalescing. For frame based configuration, currently we only support the Rx side.
The hardware allows configuration of descriptor count instead of frame count requiring conversion between the two. We assume 2 descriptors per frame, one for the metadata and one for the data segment.
When rx-frames are not configured, we set the RX descriptor count to half the ring size as a fail safe.