diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-04 16:19:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-05 16:29:00 -0700 |
commit | 5c5ec66858062a857cf51f57cbe52b36330f7ae6 (patch) | |
tree | a7d922225f90535c71f7aafa67cc411b744dea06 /net/tls/tls_proc.c | |
parent | b32fd3cc31d723bf2ab859667be3612c0086ec72 (diff) | |
download | linux-5c5ec66858062a857cf51f57cbe52b36330f7ae6.tar.gz linux-5c5ec66858062a857cf51f57cbe52b36330f7ae6.tar.bz2 linux-5c5ec66858062a857cf51f57cbe52b36330f7ae6.zip |
net/tls: add TlsDecryptError stat
Add a statistic for TLS record decryption errors.
Since devices are supposed to pass records as-is when they
encounter errors this statistic will count bad records in
both pure software and inline crypto configurations.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tls/tls_proc.c')
-rw-r--r-- | net/tls/tls_proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tls/tls_proc.c b/net/tls/tls_proc.c index 1b1f3783badc..2bea7ef4823c 100644 --- a/net/tls/tls_proc.c +++ b/net/tls/tls_proc.c @@ -15,6 +15,7 @@ static const struct snmp_mib tls_mib_list[] = { SNMP_MIB_ITEM("TlsRxSw", LINUX_MIB_TLSRXSW), SNMP_MIB_ITEM("TlsTxDevice", LINUX_MIB_TLSTXDEVICE), SNMP_MIB_ITEM("TlsRxDevice", LINUX_MIB_TLSRXDEVICE), + SNMP_MIB_ITEM("TlsDecryptError", LINUX_MIB_TLSDECRYPTERROR), SNMP_MIB_SENTINEL }; |