Skip to content

Commit a019043

Browse files
rmchelsiodavem330
authored andcommitted
cxgb4/chcr: nic-tls stats in ethtool
Included nic tls statistics in ethtool stats. Signed-off-by: Rohit Maheshwari <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 765bda9 commit a019043

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ static char adapter_stats_strings[][ETH_GSTRING_LEN] = {
106106
"db_empty ",
107107
"write_coal_success ",
108108
"write_coal_fail ",
109+
#ifdef CONFIG_CHELSIO_TLS_DEVICE
110+
"tx_tls_encrypted_packets",
111+
"tx_tls_encrypted_bytes ",
112+
"tx_tls_ctx ",
113+
"tx_tls_ooo ",
114+
"tx_tls_skip_no_sync_data",
115+
"tx_tls_drop_no_sync_data",
116+
"tx_tls_drop_bypass_req ",
117+
#endif
109118
};
110119

111120
static char loopback_stats_strings[][ETH_GSTRING_LEN] = {
@@ -232,6 +241,15 @@ struct adapter_stats {
232241
u64 db_empty;
233242
u64 wc_success;
234243
u64 wc_fail;
244+
#ifdef CONFIG_CHELSIO_TLS_DEVICE
245+
u64 tx_tls_encrypted_packets;
246+
u64 tx_tls_encrypted_bytes;
247+
u64 tx_tls_ctx;
248+
u64 tx_tls_ooo;
249+
u64 tx_tls_skip_no_sync_data;
250+
u64 tx_tls_drop_no_sync_data;
251+
u64 tx_tls_drop_bypass_req;
252+
#endif
235253
};
236254

237255
static void collect_sge_port_stats(const struct adapter *adap,

0 commit comments

Comments
 (0)