All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Paul Durrant <paul.durrant@citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] patch fix-rx-packets-accounting
Date: Wed, 15 Dec 2010 10:45:05 -0500	[thread overview]
Message-ID: <20101215154505.GD28984@dumpdata.com> (raw)
In-Reply-To: <1292348283-5786-2-git-send-email-paul.durrant@citrix.com>

On Tue, Dec 14, 2010 at 05:38:00PM +0000, Paul Durrant wrote:

Shouldn't there also be a patch to move the tx_bytes?

> ---
>  drivers/xen/netback/netback.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/xen/netback/netback.c b/drivers/xen/netback/netback.c
> index 1a4a20e..066d140 100644
> --- a/drivers/xen/netback/netback.c
> +++ b/drivers/xen/netback/netback.c
> @@ -1519,9 +1519,6 @@ static void net_tx_submit(struct xen_netbk *netbk)
>  		skb->dev      = netif->dev;
>  		skb->protocol = eth_type_trans(skb, skb->dev);
>  
> -		netif->stats.rx_bytes += skb->len;
> -		netif->stats.rx_packets++;
> -
>  		if (skb->ip_summed == CHECKSUM_PARTIAL) {
>  			if (skb_checksum_setup(skb)) {
>  				DPRINTK("Can't setup checksum in net_tx_action\n");
> @@ -1537,6 +1534,9 @@ static void net_tx_submit(struct xen_netbk *netbk)
>  			continue;
>  		}
>  
> +		netif->stats.rx_bytes += skb->len;
> +		netif->stats.rx_packets++;
> +
>  		netif_rx_ni(skb);
>  		netif->dev->last_rx = jiffies;
>  	}
> -- 
> 1.5.6.5
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2010-12-15 15:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-14 17:37 [PATCH] patch fix-PKT_PROT_LEN Paul Durrant
2010-12-14 17:38 ` [PATCH] patch fix-rx-packets-accounting Paul Durrant
2010-12-14 17:38   ` [PATCH] patch remove-timeout Paul Durrant
2010-12-14 17:38     ` [PATCH] patch fix-tx-work-todo Paul Durrant
2010-12-14 17:38       ` [PATCH] patch move-pending-tx-copy Paul Durrant
2010-12-15 15:45     ` [PATCH] patch remove-timeout Konrad Rzeszutek Wilk
2010-12-15 15:45   ` Konrad Rzeszutek Wilk [this message]
2010-12-16 11:37     ` [PATCH] patch fix-rx-packets-accounting Paul Durrant
2010-12-16 11:44       ` Ian Campbell
2010-12-16 11:49         ` Paul Durrant
2010-12-16 15:06           ` Konrad Rzeszutek Wilk

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=20101215154505.GD28984@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=paul.durrant@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.