]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
crypto/chcr: Moving chelsio's inline ipsec functionality to /drivers/net
[thirdparty/kernel/stable.git] / drivers / net / ethernet / chelsio / cxgb4 / cxgb4_debugfs.c
index 05f33b7e3677ce6ebe5afb226b898bd1090824ab..42112e8ad6872eae220b033a466281d3fd968506 100644 (file)
@@ -3542,14 +3542,17 @@ static int chcr_stats_show(struct seq_file *seq, void *v)
                   atomic_read(&adap->chcr_stats.error));
        seq_printf(seq, "Fallback: %10u \n",
                   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));
+#if IS_ENABLED(CONFIG_CHELSIO_IPSEC_INLINE)
+       seq_puts(seq, "\nChelsio Inline IPsec Crypto Accelerator Stats\n");
+       seq_printf(seq, "IPSec PDU: %10u\n",
+                  atomic_read(&adap->ch_ipsec_stats.ipsec_cnt));
+#endif
 #ifdef CONFIG_CHELSIO_TLS_DEVICE
        seq_puts(seq, "\nChelsio KTLS Crypto Accelerator Stats\n");
        seq_printf(seq, "Tx TLS offload refcount:          %20u\n",