Commit 1910ccf0 authored by Rakesh Babu Saladi's avatar Rakesh Babu Saladi Committed by David S. Miller

octeontx2-af: debugfs: Minor changes.

Few changes in rvu_debugfs.c file to remove unwanted characters,
indenting the code, added a new comment line etc.
Signed-off-by: default avatarRakesh Babu Saladi <rsaladi2@marvell.com>
Signed-off-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78805025
...@@ -95,7 +95,7 @@ static char *cgx_tx_stats_fields[] = { ...@@ -95,7 +95,7 @@ static char *cgx_tx_stats_fields[] = {
[CGX_STAT5] = "Total frames sent on the interface", [CGX_STAT5] = "Total frames sent on the interface",
[CGX_STAT6] = "Packets sent with an octet count < 64", [CGX_STAT6] = "Packets sent with an octet count < 64",
[CGX_STAT7] = "Packets sent with an octet count == 64", [CGX_STAT7] = "Packets sent with an octet count == 64",
[CGX_STAT8] = "Packets sent with an octet count of 65127", [CGX_STAT8] = "Packets sent with an octet count of 65-127",
[CGX_STAT9] = "Packets sent with an octet count of 128-255", [CGX_STAT9] = "Packets sent with an octet count of 128-255",
[CGX_STAT10] = "Packets sent with an octet count of 256-511", [CGX_STAT10] = "Packets sent with an octet count of 256-511",
[CGX_STAT11] = "Packets sent with an octet count of 512-1023", [CGX_STAT11] = "Packets sent with an octet count of 512-1023",
...@@ -125,7 +125,7 @@ static char *rpm_rx_stats_fields[] = { ...@@ -125,7 +125,7 @@ static char *rpm_rx_stats_fields[] = {
"Total frames received on interface", "Total frames received on interface",
"Packets received with an octet count < 64", "Packets received with an octet count < 64",
"Packets received with an octet count == 64", "Packets received with an octet count == 64",
"Packets received with an octet count of 65–127", "Packets received with an octet count of 65-127",
"Packets received with an octet count of 128-255", "Packets received with an octet count of 128-255",
"Packets received with an octet count of 256-511", "Packets received with an octet count of 256-511",
"Packets received with an octet count of 512-1023", "Packets received with an octet count of 512-1023",
...@@ -164,7 +164,7 @@ static char *rpm_tx_stats_fields[] = { ...@@ -164,7 +164,7 @@ static char *rpm_tx_stats_fields[] = {
"Packets sent to the multicast DMAC", "Packets sent to the multicast DMAC",
"Packets sent to a broadcast DMAC", "Packets sent to a broadcast DMAC",
"Packets sent with an octet count == 64", "Packets sent with an octet count == 64",
"Packets sent with an octet count of 65–127", "Packets sent with an octet count of 65-127",
"Packets sent with an octet count of 128-255", "Packets sent with an octet count of 128-255",
"Packets sent with an octet count of 256-511", "Packets sent with an octet count of 256-511",
"Packets sent with an octet count of 512-1023", "Packets sent with an octet count of 512-1023",
...@@ -1878,7 +1878,7 @@ static int cgx_print_stats(struct seq_file *s, int lmac_id) ...@@ -1878,7 +1878,7 @@ static int cgx_print_stats(struct seq_file *s, int lmac_id)
return -ENODEV; return -ENODEV;
mac_ops = get_mac_ops(cgxd); mac_ops = get_mac_ops(cgxd);
/* There can be no CGX devices at all */
if (!mac_ops) if (!mac_ops)
return 0; return 0;
...@@ -1956,13 +1956,13 @@ static int cgx_print_stats(struct seq_file *s, int lmac_id) ...@@ -1956,13 +1956,13 @@ static int cgx_print_stats(struct seq_file *s, int lmac_id)
if (err) if (err)
return err; return err;
if (is_rvu_otx2(rvu)) if (is_rvu_otx2(rvu))
seq_printf(s, "%s: %llu\n", cgx_tx_stats_fields[stat], seq_printf(s, "%s: %llu\n", cgx_tx_stats_fields[stat],
tx_stat); tx_stat);
else else
seq_printf(s, "%s: %llu\n", rpm_tx_stats_fields[stat], seq_printf(s, "%s: %llu\n", rpm_tx_stats_fields[stat],
tx_stat); tx_stat);
stat++; stat++;
} }
return err; return err;
......
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