wlanstats: add crypto_swcipherfail

This adds the is_crypto_swcipherfail counter to wlanstats.
This counter counts the instances of failing to find support
for a requested cipher being handled completely in software.

Differential Revision:	https://reviews.freebsd.org/D49767
Reviewed by:	bz
This commit is contained in:
Adrian Chadd
2025-04-10 13:41:46 -07:00
parent d5f5193e2d
commit 0e99e55d18
+4
View File
@@ -394,6 +394,8 @@ static const struct fmt wlanstats[] = {
{ 9, "gcmp_nomem", "gcmpnomem", "No memory available (GCMP)" },
#define S_RX_GCMPNOSPC AFTER(S_RX_GCMPNOMEM)
{ 9, "gcmp_nospc", "gcmpnospc", "No mbuf space available (GCMP)" },
#define S_CRYPTO_SWCIPHERFAIL AFTER(S_RX_GCMPNOSPC)
{ 12, "crypto_swcipherfail", "swcipherfail", "No matching software cipher support" },
};
struct wlanstatfoo_p {
@@ -848,6 +850,7 @@ wlan_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
case S_RX_GCMPMIC: STAT(rx_gcmpmic);
case S_RX_GCMPNOMEM: STAT(crypto_gcmp_nomem);
case S_RX_GCMPNOSPC: STAT(crypto_gcmp_nospc);
case S_CRYPTO_SWCIPHERFAIL: STAT(crypto_swcipherfail);
}
return wlan_getinfo(wf, s, b, bs);
#undef NSTAT
@@ -1019,6 +1022,7 @@ wlan_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
case S_RX_GCMPMIC: STAT(rx_gcmpmic);
case S_RX_GCMPNOMEM: STAT(crypto_gcmp_nomem);
case S_RX_GCMPNOSPC: STAT(crypto_gcmp_nospc);
case S_CRYPTO_SWCIPHERFAIL: STAT(crypto_swcipherfail);
}
return wlan_getinfo(wf, s, b, bs);
#undef NSTAT