Netdev List
 help / color / mirror / Atom feed
From: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David Miller <davem@davemloft.net>,
	netdev <netdev@vger.kernel.org>,
	Anton Blanchard <anton@samba.org>
Subject: Re: [PATCH] ehea: restore multicast and rx_errors fields
Date: Wed, 7 Mar 2012 11:17:04 -0300	[thread overview]
Message-ID: <20120307141704.GA11924@oc1711230544.ibm.com> (raw)
In-Reply-To: <1331099201.2474.59.camel@edumazet-laptop>

On Tue, Mar 06, 2012 at 09:46:41PM -0800, Eric Dumazet wrote:
> Commit 239c562c94d (ehea: Add 64bit statistics) added a regression,
> since we no longer report multicast & rx_errors fields, taken from
> port->stats structure. These fields are updated in ehea_update_stats()
> every second.
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
> Cc: Anton Blanchard <anton@samba.org>
> Cc: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
> ---
>  drivers/net/ethernet/ibm/ehea/ehea_main.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c
> index 5d5fb26..e6893cd 100644
> --- a/drivers/net/ethernet/ibm/ehea/ehea_main.c
> +++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c
> @@ -336,7 +336,9 @@ static struct rtnl_link_stats64 *ehea_get_stats64(struct net_device *dev,
>  	stats->tx_bytes = tx_bytes;
>  	stats->rx_packets = rx_packets;
> 
> -	return &port->stats;
> +	stats->multicast = port->stats.multicast;
> +	stats->rx_errors = port->stats.rx_errors;
> +	return stats;
>  }
> 
>  static void ehea_update_stats(struct work_struct *work)
> 
> 

Tested, in particular, the multicast stat, pinging 224.0.0.1 from
another machine.

Thanks.
Cascardo.

Acked-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>

  reply	other threads:[~2012-03-07 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07  5:46 [PATCH] ehea: restore multicast and rx_errors fields Eric Dumazet
2012-03-07 14:17 ` Thadeu Lima de Souza Cascardo [this message]
2012-03-07 14:44   ` Eric Dumazet
2012-03-08  8:23     ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120307141704.GA11924@oc1711230544.ibm.com \
    --to=cascardo@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox