[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121028231300.GA27196@electric-eye.fr.zoreil.com>
Date: Mon, 29 Oct 2012 00:13:00 +0100
From: Francois Romieu <romieu@...zoreil.com>
To: Javier Domingo <javierdo1@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: Information about napi_struct and net_device
Javier Domingo <javierdo1@...il.com> :
[...]
> inside of the net_device structure, I know I can take
> the net_device pointer as documented in [3], but how may I obtain the
> napi_struct from the netdevice? or I am doing it the wrong way?
You are doing it the wrong way. The napi_struct you need is not embedded
here. See
$ less +/napi drivers/net/ethernet/realtek/8139cp.c
(first match in struct cp_private).
You should really read one of the existing drivers.
--
Ueimor
--
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