netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can we have GET_NETDEV_DEV?
@ 2006-07-25  4:52 Pavel Roskin
  2006-07-25 17:20 ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Roskin @ 2006-07-25  4:52 UTC (permalink / raw)
  To: netdev, Greg Kroah-Hartman

Hello!

gregkh-driver-network-class_device-to-device.patch, which briefly
appeared in Linux 2.6.18-rc1-mm1 broke MadWifi, which is copying the
physical device information from the master network device to the
virtual network devices:

SET_NETDEV_DEV(dev, mdev->class_dev.dev);

The same code exists in hostap.  The patch is gone from 2.6.18-rc1-mm2,
but I'd like to be prepared if it reappears.

An easy solution would be to have GET_NETDEV_DEV macro.  Then the
drivers could do this:

SET_NETDEV_DEV(dev, GET_NETDEV_DEV(mdev));

without having to worry about the internals of struct net_device.  It
should be done before class_dev is removed or in the same time.

Should I send a patch?

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-25 22:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-25  4:52 Can we have GET_NETDEV_DEV? Pavel Roskin
2006-07-25 17:20 ` Stephen Hemminger
2006-07-25 21:08   ` Pavel Roskin
2006-07-25 21:26     ` Stephen Hemminger
2006-07-25 22:02       ` Pavel Roskin
2006-07-25 21:31   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).