net/tls: add statistics for installed sessions
Add SNMP stats for number of sockets with successfully installed sessions. Break them down to software and hardware ones. Note that if hardware offload fails stack uses software implementation, and counts the session appropriately. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d26b698dd3
commit
b32fd3cc31
4 changed files with 49 additions and 4 deletions
|
|
@ -327,6 +327,14 @@ enum
|
|||
enum
|
||||
{
|
||||
LINUX_MIB_TLSNUM = 0,
|
||||
LINUX_MIB_TLSCURRTXSW, /* TlsCurrTxSw */
|
||||
LINUX_MIB_TLSCURRRXSW, /* TlsCurrRxSw */
|
||||
LINUX_MIB_TLSCURRTXDEVICE, /* TlsCurrTxDevice */
|
||||
LINUX_MIB_TLSCURRRXDEVICE, /* TlsCurrRxDevice */
|
||||
LINUX_MIB_TLSTXSW, /* TlsTxSw */
|
||||
LINUX_MIB_TLSRXSW, /* TlsRxSw */
|
||||
LINUX_MIB_TLSTXDEVICE, /* TlsTxDevice */
|
||||
LINUX_MIB_TLSRXDEVICE, /* TlsRxDevice */
|
||||
__LINUX_MIB_TLSMAX
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue