-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sfc-TC-offload-counters'
Edward Cree says: ==================== sfc: TC offload counters 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. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
13 changed files
with
998 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/**************************************************************************** | ||
* Driver for Solarflare network controllers and boards | ||
* Copyright 2020 Xilinx, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 as published | ||
* by the Free Software Foundation, incorporated herein by reference. | ||
*/ | ||
|
||
/* Format of counter packets (version 2) from the ef100 Match-Action Engine */ | ||
|
||
#ifndef EFX_MAE_COUNTER_FORMAT_H | ||
#define EFX_MAE_COUNTER_FORMAT_H | ||
|
||
|
||
/*------------------------------------------------------------*/ | ||
/* | ||
* ER_RX_SL_PACKETISER_HEADER_WORD(160bit): | ||
* | ||
*/ | ||
#define ER_RX_SL_PACKETISER_HEADER_WORD_SIZE 20 | ||
#define ER_RX_SL_PACKETISER_HEADER_WORD_WIDTH 160 | ||
|
||
#define ERF_SC_PACKETISER_HEADER_VERSION_LBN 0 | ||
#define ERF_SC_PACKETISER_HEADER_VERSION_WIDTH 8 | ||
#define ERF_SC_PACKETISER_HEADER_VERSION_VALUE 2 | ||
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_LBN 8 | ||
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_WIDTH 8 | ||
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_AR 0 | ||
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_CT 1 | ||
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_OR 2 | ||
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_LBN 16 | ||
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_WIDTH 8 | ||
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_DEFAULT 0x4 | ||
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_LBN 24 | ||
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_WIDTH 8 | ||
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_DEFAULT 0x14 | ||
#define ERF_SC_PACKETISER_HEADER_INDEX_LBN 32 | ||
#define ERF_SC_PACKETISER_HEADER_INDEX_WIDTH 16 | ||
#define ERF_SC_PACKETISER_HEADER_COUNT_LBN 48 | ||
#define ERF_SC_PACKETISER_HEADER_COUNT_WIDTH 16 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_0_LBN 64 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_0_WIDTH 32 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_1_LBN 96 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_1_WIDTH 32 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_2_LBN 128 | ||
#define ERF_SC_PACKETISER_HEADER_RESERVED_2_WIDTH 32 | ||
|
||
|
||
/*------------------------------------------------------------*/ | ||
/* | ||
* ER_RX_SL_PACKETISER_PAYLOAD_WORD(128bit): | ||
* | ||
*/ | ||
#define ER_RX_SL_PACKETISER_PAYLOAD_WORD_SIZE 16 | ||
#define ER_RX_SL_PACKETISER_PAYLOAD_WORD_WIDTH 128 | ||
|
||
#define ERF_SC_PACKETISER_PAYLOAD_COUNTER_INDEX_LBN 0 | ||
#define ERF_SC_PACKETISER_PAYLOAD_COUNTER_INDEX_WIDTH 24 | ||
#define ERF_SC_PACKETISER_PAYLOAD_RESERVED_LBN 24 | ||
#define ERF_SC_PACKETISER_PAYLOAD_RESERVED_WIDTH 8 | ||
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_OFST 4 | ||
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_SIZE 6 | ||
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_LBN 32 | ||
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_WIDTH 48 | ||
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_OFST 10 | ||
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_SIZE 6 | ||
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_LBN 80 | ||
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_WIDTH 48 | ||
|
||
|
||
#endif /* EFX_MAE_COUNTER_FORMAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.