sfc: TC offload counters
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 0 repliesApplied 12/12
- v111 patches 0 repliesSuperseded
Changes in v2 from the cover letter
* added new patch #1 to fix shift UB on 32 bit (kernel test robot)
Patches in v2 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | sfc: fix ef100 RX prefix macrodrivers/ | +1 | 0 replies | Applied |
| 2/12 | sfc: add ability for an RXQ to grant credits on refilldrivers/ drivers/ drivers/ | +22 | 0 replies | Applied |
| 3/12 | sfc: add start and stop methods to channelsdrivers/ drivers/ | +12 | 0 replies | Applied |
| 4/12 | sfc: add ability for extra channels to receive raw RX buffersdrivers/ drivers/ | +9 | 0 replies | Applied |
| 5/12 | sfc: add ef100 MAE counter support functionsdrivers/ drivers/ drivers/ +2 more | +139 | 0 replies | Applied |
| 6/12 | sfc: add extra RX channel to receive MAE counter updates on ef100drivers/ drivers/ drivers/ +4 more | +373 | 0 replies | Applied |
| 7/12 | sfc: add hashtables for MAE counters and counter ID mappingsdrivers/ drivers/ drivers/ +1 more | +90 | 0 replies | Applied |
| 8/12 | sfc: add functions to allocate/free MAE countersdrivers/ drivers/ drivers/ +1 more | +170 | 0 replies | Applied |
| 9/12 | sfc: accumulate MAE counter values from update packetsdrivers/ drivers/ | +57 | 0 replies | Applied |
| 10/12 | sfc: attach an MAE counter to TC actions that need itdrivers/ drivers/ drivers/ | +32 | 0 replies | Applied |
| 11/12 | sfc: validate MAE action orderdrivers/ | +50 | 0 replies | Applied |
| 12/12 | sfc: implement counters readout to TC statsdrivers/ drivers/ drivers/ | +52 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 net-next 00/12] sfc: TC offload counters
From: Edward Cree <[email protected]>
EF100 hardware supports attaching counters to action-sets in the MAE. Use these counters to implement stats for TC flower offload.
The counters are delivered to the host over a special hardware RX queue
which should only ever receive counter update messages, not 'real' network packets.
Changed in v2:
* added new patch #1 to fix shift UB on 32 bit (kernel test robot)
Edward Cree (12):
sfc: fix ef100 RX prefix macro
sfc: add ability for an RXQ to grant credits on refill
sfc: add start and stop methods to channels
sfc: add ability for extra channels to receive raw RX buffers
sfc: add ef100 MAE counter support functions
sfc: add extra RX channel to receive MAE counter updates on ef100
sfc: add hashtables for MAE counters and counter ID mappings
sfc: add functions to allocate/free MAE counters
sfc: accumulate MAE counter values from update packets
sfc: attach an MAE counter to TC actions that need it
sfc: validate MAE action order
sfc: implement counters readout to TC stats
drivers/net/ethernet/sfc/Makefile | 2 +- drivers/net/ethernet/sfc/ef100_rx.c | 23 +- drivers/net/ethernet/sfc/efx_channels.c | 9 +- drivers/net/ethernet/sfc/mae.c | 170 +++++- drivers/net/ethernet/sfc/mae.h | 7 + drivers/net/ethernet/sfc/mae_counter_format.h | 73 +++ drivers/net/ethernet/sfc/mcdi.h | 5 + drivers/net/ethernet/sfc/net_driver.h | 17 +- drivers/net/ethernet/sfc/rx_common.c | 3 + drivers/net/ethernet/sfc/tc.c | 122 +++++ drivers/net/ethernet/sfc/tc.h | 16 + drivers/net/ethernet/sfc/tc_counters.c | 501 ++++++++++++++++++ drivers/net/ethernet/sfc/tc_counters.h | 59 +++ 13 files changed, 998 insertions(+), 9 deletions(-) create mode 100644 drivers/net/ethernet/sfc/mae_counter_format.h create mode 100644 drivers/net/ethernet/sfc/tc_counters.c create mode 100644 drivers/net/ethernet/sfc/tc_counters.h