mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-24 02:22:16 +03:00
nvethernetrm: Add support for MACsec controller
This commit adds support for MACsec controller HW operations. The MACsec HW ops can be accessed via osi_core layer. Currently, MACsec HW is enabled when MAC interface is brough up, with no LUT entry so that packets will still be bypassed. MTU check is enabled and default interrupts are enabled for statistics. Bug 2913560 Change-Id: I62e8567fac6603db47f4069a40458038f9b4178a Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
This commit is contained in:
committed by
Bhadram Varka
parent
1a7eeb9c9b
commit
bfad299d24
@@ -579,4 +579,50 @@ struct osi_xtra_stat_counters {
|
||||
/** link disconnect count */
|
||||
nveu64_t link_disconnect_count;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief The structure hold macsec statistics counters
|
||||
*/
|
||||
struct osi_macsec_mmc_counters {
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets */
|
||||
unsigned long long rx_pkts_no_tag;
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets validateFrame != strict */
|
||||
unsigned long long rx_pkts_untagged;
|
||||
/** This counter provides the number of invalid tag or icv packets */
|
||||
unsigned long long rx_pkts_bad_tag;
|
||||
/** This counter provides the number of no sc lookup hit or sc match
|
||||
* packets */
|
||||
unsigned long long rx_pkts_no_sa_err;
|
||||
/** This counter provides the number of no sc lookup hit or sc match
|
||||
* packets validateFrame != strict */
|
||||
unsigned long long rx_pkts_no_sa;
|
||||
/** This counter provides the number of late packets
|
||||
*received PN < lowest PN */
|
||||
unsigned long long rx_pkts_late[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of overrun packets */
|
||||
unsigned long long rx_pkts_overrun;
|
||||
/** This counter provides the number of octets after IVC passing */
|
||||
unsigned long long rx_octets_validated;
|
||||
/** This counter provides the number not valid packets */
|
||||
unsigned long long rx_pkts_not_valid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of invalid packets */
|
||||
unsigned long long in_pkts_invalid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packet delayed */
|
||||
unsigned long long rx_pkts_delayed[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packets un checked */
|
||||
unsigned long long rx_pkts_unchecked[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of in packets ok */
|
||||
unsigned long long rx_pkts_ok[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out packets untaged */
|
||||
unsigned long long tx_pkts_untaged;
|
||||
/** This counter provides the number of out too long */
|
||||
unsigned long long tx_pkts_too_long;
|
||||
/** This counter provides the number of out packets protected */
|
||||
unsigned long long tx_pkts_protected[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out octets protected */
|
||||
unsigned long long tx_octets_protected;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user