Skip to content

Commit

Permalink
cxgb4/chcr: nic-tls stats in ethtool
Browse files Browse the repository at this point in the history
Included nic tls statistics in ethtool stats.

Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rohit Maheshwari authored and David S. Miller committed Mar 31, 2020
1 parent 765bda9 commit a019043
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ static char adapter_stats_strings[][ETH_GSTRING_LEN] = {
"db_empty ",
"write_coal_success ",
"write_coal_fail ",
#ifdef CONFIG_CHELSIO_TLS_DEVICE
"tx_tls_encrypted_packets",
"tx_tls_encrypted_bytes ",
"tx_tls_ctx ",
"tx_tls_ooo ",
"tx_tls_skip_no_sync_data",
"tx_tls_drop_no_sync_data",
"tx_tls_drop_bypass_req ",
#endif
};

static char loopback_stats_strings[][ETH_GSTRING_LEN] = {
Expand Down Expand Up @@ -232,6 +241,15 @@ struct adapter_stats {
u64 db_empty;
u64 wc_success;
u64 wc_fail;
#ifdef CONFIG_CHELSIO_TLS_DEVICE
u64 tx_tls_encrypted_packets;
u64 tx_tls_encrypted_bytes;
u64 tx_tls_ctx;
u64 tx_tls_ooo;
u64 tx_tls_skip_no_sync_data;
u64 tx_tls_drop_no_sync_data;
u64 tx_tls_drop_bypass_req;
#endif
};

static void collect_sge_port_stats(const struct adapter *adap,
Expand Down

0 comments on commit a019043

Please sign in to comment.