mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-22 09:12:10 +03:00
nvethernetrm: address review comments
- Convert primitive data type to nv_ type's - Replace debug pr_ prints with OSI_CORE_ print macro's - Add all macsec register macro's with prefix MACSEC_ - Update all osi function header as per 5.2 coding guidelines(PLC) - Remove printk.h header file and use OSI_CORE_ERR macro's in all prints - Implement clean up LUT's in add_upd_sc() and del_upd_sc() Bug 3264523 Change-Id: Ie41097c85fbcb90ce0c4cac470fe0f068ed22247 Signed-off-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2548476 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Bhadram Varka
parent
0edba05f96
commit
d6b7173618
@@ -587,43 +587,43 @@ struct osi_xtra_stat_counters {
|
||||
struct osi_macsec_mmc_counters {
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets */
|
||||
unsigned long long rx_pkts_no_tag;
|
||||
nveul64_t rx_pkts_no_tag;
|
||||
/** This counter provides the number of controller port macsec
|
||||
* untaged packets validateFrame != strict */
|
||||
unsigned long long rx_pkts_untagged;
|
||||
nveul64_t rx_pkts_untagged;
|
||||
/** This counter provides the number of invalid tag or icv packets */
|
||||
unsigned long long rx_pkts_bad_tag;
|
||||
nveul64_t 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;
|
||||
nveul64_t 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;
|
||||
nveul64_t 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];
|
||||
nveul64_t rx_pkts_late[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of overrun packets */
|
||||
unsigned long long rx_pkts_overrun;
|
||||
nveul64_t rx_pkts_overrun;
|
||||
/** This counter provides the number of octets after IVC passing */
|
||||
unsigned long long rx_octets_validated;
|
||||
nveul64_t rx_octets_validated;
|
||||
/** This counter provides the number not valid packets */
|
||||
unsigned long long rx_pkts_not_valid[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t 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];
|
||||
nveul64_t 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];
|
||||
nveul64_t 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];
|
||||
nveul64_t 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];
|
||||
nveul64_t rx_pkts_ok[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out packets untaged */
|
||||
unsigned long long tx_pkts_untaged;
|
||||
nveul64_t tx_pkts_untaged;
|
||||
/** This counter provides the number of out too long */
|
||||
unsigned long long tx_pkts_too_long;
|
||||
nveul64_t tx_pkts_too_long;
|
||||
/** This counter provides the number of out packets protected */
|
||||
unsigned long long tx_pkts_protected[OSI_MACSEC_SC_INDEX_MAX];
|
||||
nveul64_t tx_pkts_protected[OSI_MACSEC_SC_INDEX_MAX];
|
||||
/** This counter provides the number of out octets protected */
|
||||
unsigned long long tx_octets_protected;
|
||||
nveul64_t tx_octets_protected;
|
||||
};
|
||||
#endif /* MACSEC_SUPPORT */
|
||||
#endif /* INCLUDED_MMC_H */
|
||||
Reference in New Issue
Block a user