netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
@ 2008-04-29 12:59 Joakim Tjernlund
  0 siblings, 0 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2008-04-29 12:59 UTC (permalink / raw)
  To: Li Yang, Netdev; +Cc: Joakim Tjernlund

Noticed that ethtool -S didn't display tx-xxx-frames correctly.
Fix it and a few others while I am there. Strangely, the
rx-jumbo-frames counter still counts pkgs even though I think
there isn't any packtes above 1518.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 drivers/net/ucc_geth_ethtool.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ucc_geth_ethtool.c b/drivers/net/ucc_geth_ethtool.c
index a995a3a..0eddf50 100644
--- a/drivers/net/ucc_geth_ethtool.c
+++ b/drivers/net/ucc_geth_ethtool.c
@@ -60,7 +60,6 @@ static char hw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"rx-broadcast-frames",
 	"stats-counter-carry",
 	"stats-counter-mask",
-	"rx-dropped-frames",
 };
 
 static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
@@ -73,6 +72,7 @@ static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"tx-frames-ok",
 	"tx-excessive-differ-frames",
 	"tx-256-511-frames",
+	"tx-512-1023-frames",
 	"tx-1024-1518-frames",
 	"tx-jumbo-frames",
 };
@@ -101,7 +101,6 @@ static char rx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"rx-vlan-removed",
 	"rx-vlan-replaced",
 	"rx-vlan-inserted",
-	"rx-ip-checksum-errors",
 };
 
 #define UEC_HW_STATS_LEN ARRAY_SIZE(hw_stat_gstrings)
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
@ 2008-05-13  8:04 Joakim Tjernlund
  2008-05-14 10:37 ` Li Yang
  2008-05-22 18:06 ` Jeff Garzik
  0 siblings, 2 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2008-05-13  8:04 UTC (permalink / raw)
  To: Netdev, Li Yang; +Cc: Joakim Tjernlund

Noticed that ethtool -S didn't display tx-xxx-frames correctly.
Fix it and a few others while I am there. Strangely, the
rx-jumbo-frames counter still counts pkgs even though I think
there isn't any packtes above 1518.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---

Havn't seen this go in or ACK/NACK. Resending.

 drivers/net/ucc_geth_ethtool.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ucc_geth_ethtool.c b/drivers/net/ucc_geth_ethtool.c
index a995a3a..0eddf50 100644
--- a/drivers/net/ucc_geth_ethtool.c
+++ b/drivers/net/ucc_geth_ethtool.c
@@ -60,7 +60,6 @@ static char hw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"rx-broadcast-frames",
 	"stats-counter-carry",
 	"stats-counter-mask",
-	"rx-dropped-frames",
 };
 
 static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
@@ -73,6 +72,7 @@ static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"tx-frames-ok",
 	"tx-excessive-differ-frames",
 	"tx-256-511-frames",
+	"tx-512-1023-frames",
 	"tx-1024-1518-frames",
 	"tx-jumbo-frames",
 };
@@ -101,7 +101,6 @@ static char rx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
 	"rx-vlan-removed",
 	"rx-vlan-replaced",
 	"rx-vlan-inserted",
-	"rx-ip-checksum-errors",
 };
 
 #define UEC_HW_STATS_LEN ARRAY_SIZE(hw_stat_gstrings)
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-13  8:04 [PATCH] ucc_geth_ethtool: Fix a few HW stats counters Joakim Tjernlund
@ 2008-05-14 10:37 ` Li Yang
  2008-05-14 10:49   ` Joakim Tjernlund
  2008-05-22 18:06 ` Jeff Garzik
  1 sibling, 1 reply; 9+ messages in thread
From: Li Yang @ 2008-05-14 10:37 UTC (permalink / raw)
  To: Joakim Tjernlund, Netdev

Hi Joakim,

I admit that I missed one in tx firmware stats.  But why are you
deleting the other two?

- Leo

> -----Original Message-----
> From: Joakim Tjernlund [mailto:Joakim.Tjernlund@transmode.se] 
> Sent: Tuesday, May 13, 2008 4:05 PM
> To: Netdev; Li Yang
> Cc: Joakim Tjernlund
> Subject: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> 
> Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> Fix it and a few others while I am there. Strangely, the 
> rx-jumbo-frames counter still counts pkgs even though I think 
> there isn't any packtes above 1518.
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> ---
> 
> Havn't seen this go in or ACK/NACK. Resending.
> 
>  drivers/net/ucc_geth_ethtool.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ucc_geth_ethtool.c 
> b/drivers/net/ucc_geth_ethtool.c index a995a3a..0eddf50 100644
> --- a/drivers/net/ucc_geth_ethtool.c
> +++ b/drivers/net/ucc_geth_ethtool.c
> @@ -60,7 +60,6 @@ static char hw_stat_gstrings[][ETH_GSTRING_LEN] = {
>  	"rx-broadcast-frames",
>  	"stats-counter-carry",
>  	"stats-counter-mask",
> -	"rx-dropped-frames",
>  };
>  
>  static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = { @@ 
> -73,6 +72,7 @@ static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
>  	"tx-frames-ok",
>  	"tx-excessive-differ-frames",
>  	"tx-256-511-frames",
> +	"tx-512-1023-frames",
>  	"tx-1024-1518-frames",
>  	"tx-jumbo-frames",
>  };
> @@ -101,7 +101,6 @@ static char 
> rx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
>  	"rx-vlan-removed",
>  	"rx-vlan-replaced",
>  	"rx-vlan-inserted",
> -	"rx-ip-checksum-errors",
>  };
>  
>  #define UEC_HW_STATS_LEN ARRAY_SIZE(hw_stat_gstrings)
> --
> 1.5.5.1
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-14 10:37 ` Li Yang
@ 2008-05-14 10:49   ` Joakim Tjernlund
  2008-05-15  3:03     ` Li Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2008-05-14 10:49 UTC (permalink / raw)
  To: Li Yang; +Cc: Netdev

I didn't see them in my manual so I figured they were extra. If you find
them please let me know where.

On Wed, 2008-05-14 at 18:37 +0800, Li Yang wrote:
> Hi Joakim,
> 
> I admit that I missed one in tx firmware stats.  But why are you
> deleting the other two?
> 
> - Leo
> 
> > -----Original Message-----
> > From: Joakim Tjernlund [mailto:Joakim.Tjernlund@transmode.se] 
> > Sent: Tuesday, May 13, 2008 4:05 PM
> > To: Netdev; Li Yang
> > Cc: Joakim Tjernlund
> > Subject: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> > 
> > Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> > Fix it and a few others while I am there. Strangely, the 
> > rx-jumbo-frames counter still counts pkgs even though I think 
> > there isn't any packtes above 1518.
> > 
> > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > ---
> > 
> > Havn't seen this go in or ACK/NACK. Resending.
> > 
> >  drivers/net/ucc_geth_ethtool.c |    3 +--
> >  1 files changed, 1 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/net/ucc_geth_ethtool.c 
> > b/drivers/net/ucc_geth_ethtool.c index a995a3a..0eddf50 100644
> > --- a/drivers/net/ucc_geth_ethtool.c
> > +++ b/drivers/net/ucc_geth_ethtool.c
> > @@ -60,7 +60,6 @@ static char hw_stat_gstrings[][ETH_GSTRING_LEN] = {
> >  	"rx-broadcast-frames",
> >  	"stats-counter-carry",
> >  	"stats-counter-mask",
> > -	"rx-dropped-frames",
> >  };
> >  
> >  static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = { @@ 
> > -73,6 +72,7 @@ static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
> >  	"tx-frames-ok",
> >  	"tx-excessive-differ-frames",
> >  	"tx-256-511-frames",
> > +	"tx-512-1023-frames",
> >  	"tx-1024-1518-frames",
> >  	"tx-jumbo-frames",
> >  };
> > @@ -101,7 +101,6 @@ static char 
> > rx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
> >  	"rx-vlan-removed",
> >  	"rx-vlan-replaced",
> >  	"rx-vlan-inserted",
> > -	"rx-ip-checksum-errors",
> >  };
> >  
> >  #define UEC_HW_STATS_LEN ARRAY_SIZE(hw_stat_gstrings)
> > --
> > 1.5.5.1
> > 
> > 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-14 10:49   ` Joakim Tjernlund
@ 2008-05-15  3:03     ` Li Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Li Yang @ 2008-05-15  3:03 UTC (permalink / raw)
  To: joakim.tjernlund; +Cc: Netdev

> -----Original Message-----
> From: Joakim Tjernlund [mailto:joakim.tjernlund@transmode.se] 
> Sent: Wednesday, May 14, 2008 6:50 PM
> To: Li Yang
> Cc: Netdev
> Subject: RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> 
> I didn't see them in my manual so I figured they were extra. 
> If you find them please let me know where.

I'm reading from MPC8360ERM Rev. 2.  They have the following definition:

UCCx_BASE+0x1C4  Frames discarded due to overrun condition in the
RxFIFO.
REBASE+5C Counts the total number of fames that have an IPChecsum Error.

Which manual are you using?

- Leo
> 
> On Wed, 2008-05-14 at 18:37 +0800, Li Yang wrote:
> > Hi Joakim,
> > 
> > I admit that I missed one in tx firmware stats.  But why are you 
> > deleting the other two?
> > 
> > - Leo
> > 
> > > -----Original Message-----
> > > From: Joakim Tjernlund [mailto:Joakim.Tjernlund@transmode.se]
> > > Sent: Tuesday, May 13, 2008 4:05 PM
> > > To: Netdev; Li Yang
> > > Cc: Joakim Tjernlund
> > > Subject: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> > > 
> > > Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> > > Fix it and a few others while I am there. Strangely, the 
> > > rx-jumbo-frames counter still counts pkgs even though I 
> think there 
> > > isn't any packtes above 1518.
> > > 
> > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > > ---
> > > 
> > > Havn't seen this go in or ACK/NACK. Resending.
> > > 
> > >  drivers/net/ucc_geth_ethtool.c |    3 +--
> > >  1 files changed, 1 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/drivers/net/ucc_geth_ethtool.c 
> > > b/drivers/net/ucc_geth_ethtool.c index a995a3a..0eddf50 100644
> > > --- a/drivers/net/ucc_geth_ethtool.c
> > > +++ b/drivers/net/ucc_geth_ethtool.c
> > > @@ -60,7 +60,6 @@ static char 
> hw_stat_gstrings[][ETH_GSTRING_LEN] = {
> > >  	"rx-broadcast-frames",
> > >  	"stats-counter-carry",
> > >  	"stats-counter-mask",
> > > -	"rx-dropped-frames",
> > >  };
> > >  
> > >  static char tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = { @@
> > > -73,6 +72,7 @@ static char 
> tx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
> > >  	"tx-frames-ok",
> > >  	"tx-excessive-differ-frames",
> > >  	"tx-256-511-frames",
> > > +	"tx-512-1023-frames",
> > >  	"tx-1024-1518-frames",
> > >  	"tx-jumbo-frames",
> > >  };
> > > @@ -101,7 +101,6 @@ static char
> > > rx_fw_stat_gstrings[][ETH_GSTRING_LEN] = {
> > >  	"rx-vlan-removed",
> > >  	"rx-vlan-replaced",
> > >  	"rx-vlan-inserted",
> > > -	"rx-ip-checksum-errors",
> > >  };
> > >  
> > >  #define UEC_HW_STATS_LEN ARRAY_SIZE(hw_stat_gstrings)
> > > --
> > > 1.5.5.1
> > > 
> > > 
> > 
> > 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-13  8:04 [PATCH] ucc_geth_ethtool: Fix a few HW stats counters Joakim Tjernlund
  2008-05-14 10:37 ` Li Yang
@ 2008-05-22 18:06 ` Jeff Garzik
  2008-05-23  3:04   ` Li Yang
  1 sibling, 1 reply; 9+ messages in thread
From: Jeff Garzik @ 2008-05-22 18:06 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: Netdev, Li Yang

Joakim Tjernlund wrote:
> Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> Fix it and a few others while I am there. Strangely, the
> rx-jumbo-frames counter still counts pkgs even though I think
> there isn't any packtes above 1518.
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> ---
> 
> Havn't seen this go in or ACK/NACK. Resending.
> 
>  drivers/net/ucc_geth_ethtool.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

still looking for maintainer's ack...



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-22 18:06 ` Jeff Garzik
@ 2008-05-23  3:04   ` Li Yang
  2008-05-23  7:21     ` Joakim Tjernlund
  0 siblings, 1 reply; 9+ messages in thread
From: Li Yang @ 2008-05-23  3:04 UTC (permalink / raw)
  To: Jeff Garzik, Joakim Tjernlund; +Cc: Netdev

> -----Original Message-----
> From: Jeff Garzik [mailto:jeff@garzik.org] 
> Sent: Friday, May 23, 2008 2:06 AM
> To: Joakim Tjernlund
> Cc: Netdev; Li Yang
> Subject: Re: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> 
> Joakim Tjernlund wrote:
> > Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> > Fix it and a few others while I am there. Strangely, the 
> > rx-jumbo-frames counter still counts pkgs even though I think there 
> > isn't any packtes above 1518.
> > 
> > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > ---
> > 
> > Havn't seen this go in or ACK/NACK. Resending.
> > 
> >  drivers/net/ucc_geth_ethtool.c |    3 +--
> >  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> still looking for maintainer's ack...

This patch still need some change.

Joakim,

Could you respin this patch without deleting the two counters?

- Leo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-23  3:04   ` Li Yang
@ 2008-05-23  7:21     ` Joakim Tjernlund
  2008-05-23  9:47       ` Li Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2008-05-23  7:21 UTC (permalink / raw)
  To: Li Yang; +Cc: Jeff Garzik, Netdev


On Fri, 2008-05-23 at 11:04 +0800, Li Yang wrote:
> > -----Original Message-----
> > From: Jeff Garzik [mailto:jeff@garzik.org] 
> > Sent: Friday, May 23, 2008 2:06 AM
> > To: Joakim Tjernlund
> > Cc: Netdev; Li Yang
> > Subject: Re: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> > 
> > Joakim Tjernlund wrote:
> > > Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> > > Fix it and a few others while I am there. Strangely, the 
> > > rx-jumbo-frames counter still counts pkgs even though I think there 
> > > isn't any packtes above 1518.
> > > 
> > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > > ---
> > > 
> > > Havn't seen this go in or ACK/NACK. Resending.
> > > 
> > >  drivers/net/ucc_geth_ethtool.c |    3 +--
> > >  1 files changed, 1 insertions(+), 2 deletions(-)
> > 
> > still looking for maintainer's ack...
> 
> This patch still need some change.
> 
> Joakim,
> 
> Could you respin this patch without deleting the two counters?

Very busy ATM, release coming up here so I need to focus on that.
Feel free to respin yourself meanwhile.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
  2008-05-23  7:21     ` Joakim Tjernlund
@ 2008-05-23  9:47       ` Li Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Li Yang @ 2008-05-23  9:47 UTC (permalink / raw)
  To: joakim.tjernlund; +Cc: Jeff Garzik, Netdev

> -----Original Message-----
> From: Joakim Tjernlund [mailto:joakim.tjernlund@transmode.se] 
> Sent: Friday, May 23, 2008 3:21 PM
> To: Li Yang
> Cc: Jeff Garzik; Netdev
> Subject: RE: [PATCH] ucc_geth_ethtool: Fix a few HW stats counters.
> 
> 
> On Fri, 2008-05-23 at 11:04 +0800, Li Yang wrote:
> > > -----Original Message-----
> > > From: Jeff Garzik [mailto:jeff@garzik.org]
> > > Sent: Friday, May 23, 2008 2:06 AM
> > > To: Joakim Tjernlund
> > > Cc: Netdev; Li Yang
> > > Subject: Re: [PATCH] ucc_geth_ethtool: Fix a few HW stats 
> counters.
> > > 
> > > Joakim Tjernlund wrote:
> > > > Noticed that ethtool -S didn't display tx-xxx-frames correctly.
> > > > Fix it and a few others while I am there. Strangely, the 
> > > > rx-jumbo-frames counter still counts pkgs even though I think 
> > > > there isn't any packtes above 1518.
> > > > 
> > > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> > > > ---
> > > > 
> > > > Havn't seen this go in or ACK/NACK. Resending.
> > > > 
> > > >  drivers/net/ucc_geth_ethtool.c |    3 +--
> > > >  1 files changed, 1 insertions(+), 2 deletions(-)
> > > 
> > > still looking for maintainer's ack...
> > 
> > This patch still need some change.
> > 
> > Joakim,
> > 
> > Could you respin this patch without deleting the two counters?
> 
> Very busy ATM, release coming up here so I need to focus on that.
> Feel free to respin yourself meanwhile.

Sure. I will do it.  Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-23  9:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13  8:04 [PATCH] ucc_geth_ethtool: Fix a few HW stats counters Joakim Tjernlund
2008-05-14 10:37 ` Li Yang
2008-05-14 10:49   ` Joakim Tjernlund
2008-05-15  3:03     ` Li Yang
2008-05-22 18:06 ` Jeff Garzik
2008-05-23  3:04   ` Li Yang
2008-05-23  7:21     ` Joakim Tjernlund
2008-05-23  9:47       ` Li Yang
  -- strict thread matches above, loose matches on Subject: below --
2008-04-29 12:59 Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).