Skip to content

Commit 45a8317

Browse files
Devulapally Shiva Krishnadavem330
authored andcommitted
cxgb4: Added tls stats prints.
Added debugfs entry to show the tls stats. Signed-off-by: Devulapally Shiva Krishna <[email protected]> Signed-off-by: Vinay Kumar Yadav <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b0519de commit 45a8317

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3403,6 +3403,13 @@ static int chcr_stats_show(struct seq_file *seq, void *v)
34033403
atomic_read(&adap->chcr_stats.fallback));
34043404
seq_printf(seq, "IPSec PDU: %10u\n",
34053405
atomic_read(&adap->chcr_stats.ipsec_cnt));
3406+
seq_printf(seq, "TLS PDU Tx: %10u\n",
3407+
atomic_read(&adap->chcr_stats.tls_pdu_tx));
3408+
seq_printf(seq, "TLS PDU Rx: %10u\n",
3409+
atomic_read(&adap->chcr_stats.tls_pdu_rx));
3410+
seq_printf(seq, "TLS Keys (DDR) Count: %10u\n",
3411+
atomic_read(&adap->chcr_stats.tls_key));
3412+
34063413
return 0;
34073414
}
34083415
DEFINE_SHOW_ATTRIBUTE(chcr_stats);

0 commit comments

Comments
 (0)