summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevulapally Shiva Krishna <shiva@chelsio.com>2020-02-06 14:04:43 +0530
committerDavid S. Miller <davem@davemloft.net>2020-02-06 11:26:49 +0100
commit45a8317ed2c6f0d33a89367ec5d36e4e3aa46576 (patch)
treeb57f4b8ed1ae6a9befcaaa65d5fdcac6ce865e18
parentb0519de8b3f1caf10632aca55def999ec2d2f1bc (diff)
downloadlinux-45a8317ed2c6f0d33a89367ec5d36e4e3aa46576.tar.gz
linux-45a8317ed2c6f0d33a89367ec5d36e4e3aa46576.tar.bz2
linux-45a8317ed2c6f0d33a89367ec5d36e4e3aa46576.zip
cxgb4: Added tls stats prints.
Added debugfs entry to show the tls stats. Signed-off-by: Devulapally Shiva Krishna <shiva@chelsio.com> Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
index 9d1f2f88b945..de30d61af065 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
@@ -3403,6 +3403,13 @@ static int chcr_stats_show(struct seq_file *seq, void *v)
atomic_read(&adap->chcr_stats.fallback));
seq_printf(seq, "IPSec PDU: %10u\n",
atomic_read(&adap->chcr_stats.ipsec_cnt));
+ seq_printf(seq, "TLS PDU Tx: %10u\n",
+ atomic_read(&adap->chcr_stats.tls_pdu_tx));
+ seq_printf(seq, "TLS PDU Rx: %10u\n",
+ atomic_read(&adap->chcr_stats.tls_pdu_rx));
+ seq_printf(seq, "TLS Keys (DDR) Count: %10u\n",
+ atomic_read(&adap->chcr_stats.tls_key));
+
return 0;
}
DEFINE_SHOW_ATTRIBUTE(chcr_stats);