linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: nvishwan@codeaurora.org (nvishwan at codeaurora.org)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver
Date: Tue, 21 Dec 2010 15:44:52 -0800 (PST)	[thread overview]
Message-ID: <d141676494ae8979d4b32a337c9dba38.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <20101215134107.0354c0c3@nehalam>

> On Wed, 15 Dec 2010 10:31:06 -0800
> Niranjana Vishwanathapura <nvishwan@codeaurora.org> wrote:
>
>> +static struct net_device_stats *rmnet_get_stats(struct net_device *dev)
>> +{
>> +	struct rmnet_private *p = netdev_priv(dev);
>> +	return &p->stats;
>> +}
>> +
>
> Just use dev->stats and this function would no longer be needed.
>
> --
>

This function will be a function pointer (ndo_get_stats) in net_device_ops
structure.

  reply	other threads:[~2010-12-21 23:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-15 18:31 [PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver Niranjana Vishwanathapura
2010-12-15 21:04 ` Arnd Bergmann
2010-12-21 23:44   ` nvishwan at codeaurora.org
2010-12-15 21:41 ` Stephen Hemminger
2010-12-21 23:44   ` nvishwan at codeaurora.org [this message]
2010-12-15 21:41 ` Stephen Hemminger
2010-12-21 23:45   ` nvishwan at codeaurora.org
2010-12-15 21:44 ` Stephen Hemminger
2010-12-21 23:45   ` nvishwan at codeaurora.org

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=d141676494ae8979d4b32a337c9dba38.squirrel@www.codeaurora.org \
    --to=nvishwan@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).