All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Greg Ungerer <gerg@linux-m68k.org>
Cc: bjorn@mork.no, oneukum@suse.com, netdev@vger.kernel.org,
	linux-usb@vger.kernel.org
Subject: Re: [PATCHv2] net: usbnet: support 64bit stats in qmi_wwan driver
Date: Fri, 24 Mar 2017 11:48:53 -0700	[thread overview]
Message-ID: <20170324114853.6ec9b09e@xeon-e3> (raw)
In-Reply-To: <1490318850-23252-1-git-send-email-gerg@linux-m68k.org>

On Fri, 24 Mar 2017 11:27:30 +1000
Greg Ungerer <gerg@linux-m68k.org> wrote:

> +struct usbnet_stats64 {
> +	struct u64_stats_sync	syncp;
> +	u64			rx_packets;
> +	u64			rx_bytes;
> +	u64			tx_packets;
> +	u64			tx_bytes;
> +};
> +

There already is similar structure in netdevice.h

/* often modified stats are per-CPU, other are shared (netdev->stats) */
struct pcpu_sw_netstats {
	u64     rx_packets;
	u64     rx_bytes;
	u64     tx_packets;
	u64     tx_bytes;
	struct u64_stats_sync   syncp;
};

      parent reply	other threads:[~2017-03-24 18:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24  1:27 [PATCHv2] net: usbnet: support 64bit stats in qmi_wwan driver Greg Ungerer
     [not found] ` <1490318850-23252-1-git-send-email-gerg-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2017-03-24  4:59   ` Eric Dumazet
2017-03-24  5:42     ` Greg Ungerer
2017-03-24 14:17       ` Eric Dumazet
     [not found]         ` <1490365070.9687.46.camel-XN9IlZ5yJG9HTL0Zs8A6p+yfmBU6pStAUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>
2017-03-28  8:01           ` Oliver Neukum
2017-03-24 18:48 ` Stephen Hemminger [this message]

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=20170324114853.6ec9b09e@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=bjorn@mork.no \
    --cc=gerg@linux-m68k.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oneukum@suse.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.