Re: [PATCH] net: Add DEVTYPE support for Ethernet based devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Hemminger
Date: Friday, September 4, 2009 - 9:49 pm

On Tue,  1 Sep 2009 00:08:19 -0700
Marcel Holtmann <marcel@holtmann.org> wrote:


The problem with your idea is that there is only a nebulous definition of
what is a Wifi device, and what is a WiMAX device etc.  What userspace should be looking
for is "does device XXX support API yyy?" and if it supports API
yyy then I it can be configured that way. 

There already is some information in sysfs like /sys/class/net/XXX/type
which gives the hardware type (ARPHRD_ETHER, etc).  Why not a better version
of something like this that provides "can do FOO" interface?

Doing a several system calls (open/read/close) per device is not a big
issue. Even an android phone can do open/read/close in less than a millisecond
I bet.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] net: Add DEVTYPE support for Ethernet based devices, Marcel Holtmann, (Tue Sep 1, 12:08 am)
Re: [PATCH] net: Add DEVTYPE support for Ethernet based de ..., Stephen Hemminger, (Fri Sep 4, 9:49 pm)