[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150709.211043.898973722945548914.davem@davemloft.net>
Date: Thu, 09 Jul 2015 21:10:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: pgynther@...gle.com
Cc: netdev@...r.kernel.org, f.fainelli@...il.com
Subject: Re: [PATCH net] net: bcmgenet: fix accounting of packet drops vs
errors
From: Petri Gynther <pgynther@...gle.com>
Date: Thu, 09 Jul 2015 01:55:02 +0000
> bcmgenet driver needs to separate packet drops from packet errors.
>
> When the driver has to drop a *good* packet, due to lack of buffers or
> replacement skbs, increment only dev->stats.[rx|tx]_dropped.
>
> When the driver encounters a bad Rx packet or Tx error, increment only
> dev->stats.[rx|tx]_errors + relevant detailed error counter.
>
> Signed-off-by: Petri Gynther <pgynther@...gle.com>
> ---
> drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> index b43b2cb..64c1e9d 100644
> --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> @@ -1230,7 +1230,6 @@ static struct sk_buff
> *bcmgenet_put_tx_csum(struct net_device *dev,
This is severely corrupted by your email client.
Please fix this, email a test patch to yourself, and only resubmit
this patch to the mailing list if you can successfully apply the
patch you receive in that test email.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists