Thread (11 messages) 11 messages, 6 authors, 2012-10-29

Re: Information about napi_struct and net_device

flat view

From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2012-10-28 23:34:37

Javier Domingo [off-list ref] :
[...]
              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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help