tls: fix spelling of MIB
authorJakub Kicinski <kuba@kernel.org>
Sat, 9 Jul 2022 02:52:52 +0000 (19:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jul 2022 02:48:32 +0000 (19:48 -0700)
MIN -> MIB

Fixes: 88527790c079 ("tls: rx: add sockopt for enabling optimistic decrypt with TLS 1.3")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/snmp.h
net/tls/tls_proc.c
net/tls/tls_sw.c

index 1c9152a..fd83fb9 100644 (file)
@@ -344,7 +344,7 @@ enum
        LINUX_MIB_TLSRXDEVICE,                  /* TlsRxDevice */
        LINUX_MIB_TLSDECRYPTERROR,              /* TlsDecryptError */
        LINUX_MIB_TLSRXDEVICERESYNC,            /* TlsRxDeviceResync */
-       LINUX_MIN_TLSDECRYPTRETRY,              /* TlsDecryptRetry */
+       LINUX_MIB_TLSDECRYPTRETRY,              /* TlsDecryptRetry */
        __LINUX_MIB_TLSMAX
 };
 
index 1246e52..ede9df1 100644 (file)
@@ -20,7 +20,7 @@ static const struct snmp_mib tls_mib_list[] = {
        SNMP_MIB_ITEM("TlsRxDevice", LINUX_MIB_TLSRXDEVICE),
        SNMP_MIB_ITEM("TlsDecryptError", LINUX_MIB_TLSDECRYPTERROR),
        SNMP_MIB_ITEM("TlsRxDeviceResync", LINUX_MIB_TLSRXDEVICERESYNC),
-       SNMP_MIB_ITEM("TlsDecryptRetry", LINUX_MIN_TLSDECRYPTRETRY),
+       SNMP_MIB_ITEM("TlsDecryptRetry", LINUX_MIB_TLSDECRYPTRETRY),
        SNMP_MIB_SENTINEL
 };
 
index 09370f8..e12846d 100644 (file)
@@ -1596,7 +1596,7 @@ static int decrypt_skb_update(struct sock *sk, struct sk_buff *skb,
        if (unlikely(darg->zc && prot->version == TLS_1_3_VERSION &&
                     darg->tail != TLS_RECORD_TYPE_DATA)) {
                darg->zc = false;
-               TLS_INC_STATS(sock_net(sk), LINUX_MIN_TLSDECRYPTRETRY);
+               TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSDECRYPTRETRY);
                return decrypt_skb_update(sk, skb, dest, darg);
        }