[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d141676494ae8979d4b32a337c9dba38.squirrel@www.codeaurora.org>
Date: Tue, 21 Dec 2010 15:44:52 -0800 (PST)
From: nvishwan@...eaurora.org
To: "Stephen Hemminger" <shemminger@...tta.com>
Cc: "Niranjana Vishwanathapura" <nvishwan@...eaurora.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
"Brian Swetland" <swetland@...gle.com>
Subject: Re: [PATCH] msm: rmnet: msm rmnet smd virtual ethernet driver
> On Wed, 15 Dec 2010 10:31:06 -0800
> Niranjana Vishwanathapura <nvishwan@...eaurora.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.
--
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