[PATCH net-next v2 0/2] MACB NAPI improvements
From: Robert Hancock <hidden>
Date: 2022-05-09 19:47:39
From: Robert Hancock <hidden>
Date: 2022-05-09 19:47:39
Simplify the logic in the Cadence MACB/GEM driver for determining when to reschedule NAPI processing, and update it to use NAPI for the TX path as well as the RX path. Changes since v1: Changed to use separate TX and RX NAPI instances and poll functions to avoid unnecessary checks of the other ring (TX/RX) states during polling and to use budget handling for both RX and TX. Fixed locking to protect against concurrent access to TX ring on TX transmit and TX poll paths. Robert Hancock (2): net: macb: simplify/cleanup NAPI reschedule checking net: macb: use NAPI for TX completion path drivers/net/ethernet/cadence/macb.h | 6 +- drivers/net/ethernet/cadence/macb_main.c | 291 +++++++++++++++-------- 2 files changed, 191 insertions(+), 106 deletions(-) -- 2.31.1