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: <Pine.WNT.4.64.0901041918010.1888@ppwaskie-MOBL2.amr.corp.intel.com>
Date:	Sun, 4 Jan 2009 19:23:20 -0800 (Pacific Standard Time)
From:	"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>
To:	David Miller <davem@...emloft.net>
cc:	"shemminger@...tta.com" <shemminger@...tta.com>,
	"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
	"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: ixgbe select_queue broken in 2.6.28

On Fri, 2 Jan 2009, David Miller wrote:

> From: Stephen Hemminger <shemminger@...tta.com>
> Date: Thu, 1 Jan 2009 22:54:56 -0800
> 
> > The ixgbe driver in 2.6.28 modifies select_queue. This is bad
> > in a couple of ways:
> >   1) select_queue is now in net_device_ops so the driver won't build
> >      unless CONFIG_COMPAT_NET_DEV_OPS is defined
> >   2) it is changing data that is shared and supposed to be immutable.
> > 
> > Looks like a some of the DCB stuff forgot to look at net_device_ops
> 
> Drivers shouldn't be overriding the ->select_queue() method unless
> there is a very specific reason to do so.  Ethernet drivers will not
> have such a reason.

Agreed.  I stumbled across this override in the DCB code in ixgbe right 
before the holidays.  I plan to find out why that was put in and submit a 
patch to correct it.

> This is a very bad trend and I think I'm going to need to simply
> remove the ->select_queue() method to stop the bleeding.

I understand why you want to remove this, but at the same time it is 
something that is useful if we don't abuse it.  I know for a fact this 
function pointer is very useful for routing performance setups, where 
binding a Tx queue to the CPU is very useful.  Jesse actually did the work 
on testing and getting good results with this.

> If people keep overriding this method in their drivers, then when we
> move to more sophisticated methods of computing the hash we will have
> to hit all of these override spots which makes the generic queue
> selection function pointless.

Understood.  If I clean up the use in ixgbe, and we can influence others 
to not abuse the function pointer, can we please keep it?  It really does 
provide flexibility with certain advanced features in future devices in 
specific configurations, which would be impossible to support without this 
ops pointer.

Cheers,
-PJ Waskiewicz
--
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