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]
Message-Id: <20061207.022010.120465413.davem@davemloft.net>
Date:	Thu, 07 Dec 2006 02:20:10 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	ebs@...home.net
Cc:	benh@...nel.crashing.org, netdev@...r.kernel.org
Subject: Re: NAPI and shared interrupt control

From: Eugene Surovegin <ebs@...home.net>
Date: Thu, 7 Dec 2006 02:15:55 -0800

> On Thu, Dec 07, 2006 at 01:59:54AM -0800, David Miller wrote:
> > From: Eugene Surovegin <ebs@...home.net>
> > Date: Thu, 7 Dec 2006 01:45:02 -0800
> > 
> > > I fail to see how this is not even more ugly and more complex than the 
> > > solution we have right now. Instead of trivial "orthogonal" polling 
> > > code you are suggesting adding additional complexity - handle 
> > > dynamic selection of that "master" EMAC and also handling situation 
> > > when this master device goes down and you have to switch to 
> > > another one without disturbing polling for other active devices. Why 
> > > all this? This hw is ugly enough as it is.
> > 
> > Don't do dynamic selection, that indeed would be dumb.
> > 
> > Instead, just pick one of them to act as the polling master.
> > Each EMAC has a backpointer to the master EMAC, and trigger
> > the poll via that indirection.
> 
> Well, dev_close() explicitly checks and modifies state bits related 
> to NAPI polling. From quick look I don't think it's safe to take down 
> "master" device and expect NAPI polling to still work.

Good point.

It also just occured to me that even if you use the dummy device
approach, it's the dummy device's quota that will be used by the
generic ->poll() downcall into the driver.
-
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