Message ID | cover.1668430870.git.ecree.xilinx@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | sfc: TC offload counters | expand |
Hello: This series was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Mon, 14 Nov 2022 13:15:49 +0000 you wrote: > From: Edward Cree <ecree.xilinx@gmail.com> > > 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. > > [...] Here is the summary with links: - [v2,net-next,01/12] sfc: fix ef100 RX prefix macro https://git.kernel.org/netdev/net-next/c/5ae0c2263402 - [v2,net-next,02/12] sfc: add ability for an RXQ to grant credits on refill https://git.kernel.org/netdev/net-next/c/e39515398487 - [v2,net-next,03/12] sfc: add start and stop methods to channels https://git.kernel.org/netdev/net-next/c/85697f97fd3c - [v2,net-next,04/12] sfc: add ability for extra channels to receive raw RX buffers https://git.kernel.org/netdev/net-next/c/36df6136a7d0 - [v2,net-next,05/12] sfc: add ef100 MAE counter support functions https://git.kernel.org/netdev/net-next/c/e5731274cdd1 - [v2,net-next,06/12] sfc: add extra RX channel to receive MAE counter updates on ef100 https://git.kernel.org/netdev/net-next/c/25730d8be5d8 - [v2,net-next,07/12] sfc: add hashtables for MAE counters and counter ID mappings https://git.kernel.org/netdev/net-next/c/19a0c989104a - [v2,net-next,08/12] sfc: add functions to allocate/free MAE counters https://git.kernel.org/netdev/net-next/c/0363aa295781 - [v2,net-next,09/12] sfc: accumulate MAE counter values from update packets https://git.kernel.org/netdev/net-next/c/c4bad432b95a - [v2,net-next,10/12] sfc: attach an MAE counter to TC actions that need it https://git.kernel.org/netdev/net-next/c/2e0f1eb05692 - [v2,net-next,11/12] sfc: validate MAE action order https://git.kernel.org/netdev/net-next/c/83a187a4eb3a - [v2,net-next,12/12] sfc: implement counters readout to TC stats https://git.kernel.org/netdev/net-next/c/50f8f2f7fbf2 You are awesome, thank you!
From: Edward Cree <ecree.xilinx@gmail.com> 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