|
|
@@ -94,30 +94,30 @@ hsr_prp_stats_show(struct seq_file *sfp, void *data)
|
|
|
rcu_read_unlock();
|
|
|
|
|
|
seq_puts(sfp, "LRE Stats entries\n");
|
|
|
- seq_printf(sfp, "cnt_tx_a = %d\n", priv->stats.cnt_tx_a);
|
|
|
- seq_printf(sfp, "cnt_tx_b = %d\n", priv->stats.cnt_tx_b);
|
|
|
+ seq_printf(sfp, "cnt_tx_a = %d\n", priv->lre_stats.cnt_tx_a);
|
|
|
+ seq_printf(sfp, "cnt_tx_b = %d\n", priv->lre_stats.cnt_tx_b);
|
|
|
/* actually lre_tx_c is whatever sent to the application interface. So
|
|
|
* same as rx_packets
|
|
|
*/
|
|
|
- seq_printf(sfp, "cnt_tx_c = %ld\n", master->dev->stats.rx_packets);
|
|
|
- seq_printf(sfp, "cnt_tx_sup = %d\n", priv->stats.cnt_tx_sup);
|
|
|
+ seq_printf(sfp, "cnt_tx_c = %d\n", priv->lre_stats.cnt_tx_c);
|
|
|
+ seq_printf(sfp, "cnt_tx_sup = %d\n", priv->dbg_stats.cnt_tx_sup);
|
|
|
seq_printf(sfp, "cnt_rx_wrong_lan_a = %d\n",
|
|
|
- priv->stats.cnt_rx_wrong_lan_a);
|
|
|
+ priv->lre_stats.cnt_errwronglan_a);
|
|
|
seq_printf(sfp, "cnt_rx_wrong_lan_b = %d\n",
|
|
|
- priv->stats.cnt_rx_wrong_lan_b);
|
|
|
- seq_printf(sfp, "cnt_rx_a = %d\n", priv->stats.cnt_rx_a);
|
|
|
- seq_printf(sfp, "cnt_rx_b = %d\n", priv->stats.cnt_rx_b);
|
|
|
+ priv->lre_stats.cnt_errwronglan_b);
|
|
|
+ seq_printf(sfp, "cnt_rx_a = %d\n", priv->lre_stats.cnt_rx_a);
|
|
|
+ seq_printf(sfp, "cnt_rx_b = %d\n", priv->lre_stats.cnt_rx_b);
|
|
|
/* actually lre_rx_c is whatever received from the application
|
|
|
* interface, So same as tx_packets
|
|
|
*/
|
|
|
- seq_printf(sfp, "cnt_rx_c = %ld\n", master->dev->stats.tx_packets);
|
|
|
- seq_printf(sfp, "cnt_rx_errors_a = %d\n", priv->stats.cnt_rx_errors_a);
|
|
|
- seq_printf(sfp, "cnt_rx_errors_b = %d\n", priv->stats.cnt_rx_errors_b);
|
|
|
+ seq_printf(sfp, "cnt_rx_c = %d\n", priv->lre_stats.cnt_rx_c);
|
|
|
+ seq_printf(sfp, "cnt_rx_errors_a = %d\n", priv->lre_stats.cnt_errors_a);
|
|
|
+ seq_printf(sfp, "cnt_rx_errors_b = %d\n", priv->lre_stats.cnt_errors_b);
|
|
|
if (priv->prot_version <= HSR_V1) {
|
|
|
seq_printf(sfp, "cnt_own_rx_a = %d\n",
|
|
|
- priv->stats.cnt_own_rx_a);
|
|
|
+ priv->lre_stats.cnt_own_rx_a);
|
|
|
seq_printf(sfp, "cnt_own_rx_b = %d\n",
|
|
|
- priv->stats.cnt_own_rx_b);
|
|
|
+ priv->lre_stats.cnt_own_rx_b);
|
|
|
}
|
|
|
seq_puts(sfp, "\n");
|
|
|
return 0;
|
|
|
@@ -142,6 +142,7 @@ static const struct file_operations hsr_prp_stats_fops = {
|
|
|
.llseek = seq_lseek,
|
|
|
.release = single_release,
|
|
|
};
|
|
|
+
|
|
|
/* hsr_prp_debugfs_init - create hsr-prp node_table file for dumping
|
|
|
* the node table and lre stats
|
|
|
*
|