From: <edward.cree@amd.com>
To: <netdev@vger.kernel.org>, <linux-net-drivers@amd.com>
Cc: <davem@davemloft.net>, <kuba@kernel.org>, <pabeni@redhat.com>,
<edumazet@google.com>, <habetsm.xilinx@gmail.com>,
Edward Cree <ecree.xilinx@gmail.com>
Subject: [PATCH net-next 00/11] sfc: TC offload counters
Date: Tue, 8 Nov 2022 17:24:41 +0000 [thread overview]
Message-ID: <cover.1667923490.git.ecree.xilinx@gmail.com> (raw)
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.
Edward Cree (11):
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 | 21 +-
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, 997 insertions(+), 8 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
next reply other threads:[~2022-11-08 17:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 17:24 edward.cree [this message]
2022-11-08 17:24 ` [PATCH net-next 01/11] sfc: add ability for an RXQ to grant credits on refill edward.cree
2022-11-08 17:24 ` [PATCH net-next 02/11] sfc: add start and stop methods to channels edward.cree
2022-11-08 17:24 ` [PATCH net-next 03/11] sfc: add ability for extra channels to receive raw RX buffers edward.cree
2022-11-08 22:20 ` kernel test robot
2022-11-08 17:24 ` [PATCH net-next 04/11] sfc: add ef100 MAE counter support functions edward.cree
2022-11-08 17:24 ` [PATCH net-next 05/11] sfc: add extra RX channel to receive MAE counter updates on ef100 edward.cree
2022-11-08 17:24 ` [PATCH net-next 06/11] sfc: add hashtables for MAE counters and counter ID mappings edward.cree
2022-11-08 17:24 ` [PATCH net-next 07/11] sfc: add functions to allocate/free MAE counters edward.cree
2022-11-08 17:24 ` [PATCH net-next 08/11] sfc: accumulate MAE counter values from update packets edward.cree
2022-11-08 17:24 ` [PATCH net-next 09/11] sfc: attach an MAE counter to TC actions that need it edward.cree
2022-11-08 17:24 ` [PATCH net-next 10/11] sfc: validate MAE action order edward.cree
2022-11-08 17:24 ` [PATCH net-next 11/11] sfc: implement counters readout to TC stats edward.cree
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1667923490.git.ecree.xilinx@gmail.com \
--to=edward.cree@amd.com \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=habetsm.xilinx@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).