Commit 741912c5 authored by Rick Farrington's avatar Rick Farrington Committed by David S. Miller

liquidio: support new firmware statistic fw_err_pki

Added support for new firmware statistic 'tx_err_pki'.
Signed-off-by: default avatarRick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: default avatarDerek Chickles <derek.chickles@cavium.com>
Signed-off-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c5e9fb8
...@@ -105,6 +105,7 @@ static const char oct_stats_strings[][ETH_GSTRING_LEN] = { ...@@ -105,6 +105,7 @@ static const char oct_stats_strings[][ETH_GSTRING_LEN] = {
"tx_total_sent", "tx_total_sent",
"tx_total_fwd", "tx_total_fwd",
"tx_err_pko", "tx_err_pko",
"tx_err_pki",
"tx_err_link", "tx_err_link",
"tx_err_drop", "tx_err_drop",
...@@ -826,6 +827,8 @@ lio_get_ethtool_stats(struct net_device *netdev, ...@@ -826,6 +827,8 @@ lio_get_ethtool_stats(struct net_device *netdev,
data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_total_fwd); data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_total_fwd);
/*per_core_stats[j].link_stats[i].fromhost.fw_err_pko */ /*per_core_stats[j].link_stats[i].fromhost.fw_err_pko */
data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_err_pko); data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_err_pko);
/*per_core_stats[j].link_stats[i].fromhost.fw_err_pki */
data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_err_pki);
/*per_core_stats[j].link_stats[i].fromhost.fw_err_link */ /*per_core_stats[j].link_stats[i].fromhost.fw_err_link */
data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_err_link); data[i++] = CVM_CAST64(oct_dev->link_stats.fromhost.fw_err_link);
/*per_core_stats[cvmx_get_core_num()].link_stats[idx].fromhost. /*per_core_stats[cvmx_get_core_num()].link_stats[idx].fromhost.
...@@ -1568,6 +1571,7 @@ octnet_nic_stats_callback(struct octeon_device *oct_dev, ...@@ -1568,6 +1571,7 @@ octnet_nic_stats_callback(struct octeon_device *oct_dev,
tstats->fw_total_sent = rsp_tstats->fw_total_sent; tstats->fw_total_sent = rsp_tstats->fw_total_sent;
tstats->fw_total_fwd = rsp_tstats->fw_total_fwd; tstats->fw_total_fwd = rsp_tstats->fw_total_fwd;
tstats->fw_err_pko = rsp_tstats->fw_err_pko; tstats->fw_err_pko = rsp_tstats->fw_err_pko;
tstats->fw_err_pki = rsp_tstats->fw_err_pki;
tstats->fw_err_link = rsp_tstats->fw_err_link; tstats->fw_err_link = rsp_tstats->fw_err_link;
tstats->fw_err_drop = rsp_tstats->fw_err_drop; tstats->fw_err_drop = rsp_tstats->fw_err_drop;
tstats->fw_tso = rsp_tstats->fw_tso; tstats->fw_tso = rsp_tstats->fw_tso;
......
...@@ -814,6 +814,7 @@ struct nic_tx_stats { ...@@ -814,6 +814,7 @@ struct nic_tx_stats {
u64 fw_tso; /* number of tso requests */ u64 fw_tso; /* number of tso requests */
u64 fw_tso_fwd; /* number of packets segmented in tso */ u64 fw_tso_fwd; /* number of packets segmented in tso */
u64 fw_tx_vxlan; u64 fw_tx_vxlan;
u64 fw_err_pki;
}; };
struct oct_link_stats { struct oct_link_stats {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment