lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 21 Feb 2009 19:15:16 +0100
From:	Miguel Ángel Álvarez <gotzoncabanes@...il.com>
To:	Herbert Xu <herbert@...dor.apana.org.au>
Cc:	Stephen Hemminger <shemminger@...tta.com>, netdev@...r.kernel.org,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>
Subject: Re: NAPI of many interfaces with just an interruption source

Thanks for your answers...

I understand that yes... if there is just an irq, the NAPI structure
should be one also...

The question is... I have one napi (inserted in an struct hss_t). This
hss structure has pointers to four struct port (each one is a network
device). So... When I detect the first IRQ, I can detect the dev
origin of the irq, and call netif_rx_schedule for it
(netif_rx_schedule(dev, &port->hss->napi).

In the poll function, I can obtain hss from napi, but not the dev
(unless I store the value of the last calling dev in hss_t). Is this
the way?

Thanks

Miguel Ángel Álvarez
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ