Subject: Re: [PATCH]&[Question] netdevice: Use netdev_priv()

From: Wang Chen <[email-masked]>
Date: Tue, 05 Aug 2008 17:55:27 +0800

David Miller said the following on 2008-8-1 19:05:
> From: Wang Chen <[email-masked]>
> Date: Fri, 01 Aug 2008 18:35:24 +0800
> 
>> How about add a comment to netdev->priv
>>
>> void	*priv;	/* pointer to private data, referent me by netdev_priv()*/
> 
> Sure, but I'd much rather apply a patch that converts
> all the direct references :-)

I just checked some drivers' source.
And, maybe some direct references of net_device->priv are needed.
For example:
init_one() of cxgb2 makes several net_device to share one private data.
For this purpose, direct reference is necessary.