mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ethtool_ops
@ 2003-06-06 14:29 Matthew Wilcox
  2003-06-06 14:31 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2003-06-06 14:29 UTC (permalink / raw)
  To: linux-kernel, linux-net


The patch is 40k, so I'm not going to post it inline.
http://ftp.linux.org.uk/pub/linux/willy/patches/ethtool.diff

Right now, each network driver which supports the ethtool ioctl has its
own implementation of everything from decoding which ethtool ioctl it is,
copying data to and from userspace, marshalling and unmarshalling data
from ethtool packets, etc.  The current setup makes it impossible to
use alternative interfaces to get at the same data (eg sysfs) and it's
not exactly typesafe.

This patch introduces ethtool_ops and converts tg3 to use it.
Drivers don't access userspace on their own under this scheme; they
just do the requested operation and return the appropriate value(s).
Compile-tested only; design approved by jgarzik.  Comments welcomed.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

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

end of thread, other threads:[~2003-06-06 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-06 14:29 [PATCH] ethtool_ops Matthew Wilcox
2003-06-06 14:31 ` David S. Miller
2003-06-06 15:50   ` ipNetToMediaTable Ravi Kiran G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®