On Mon, May 01, 2006 at 02:08:34PM -0700, Stephen Hemminger wrote:
> Add basic sysfs support for vlan device. It creates an entry in the
> vlan pseudo-device to display tag.
> /sys/class/net/eth0.5/vlan_id
>
> It would be nice at some future to have something like:
> /sys/class/net/eth0/tags/5 -> ../../eth0.5
> as well.
>
> There is a race with udev though. The sysfs entry can't be created
> until after the the class_device is registered but the registration
> doesn't happen until rtnl_unlock after register_netdevice. The class_device
> registration causes the hotplug event, so the hotplug user program
> might get there before vlan_id is created.
>
>
> --- vlan.orig/net/8021q/Makefile 2006-05-01 12:50:58.000000000 -0700
> +++ vlan/net/8021q/Makefile 2006-05-01 14:04:56.000000000 -0700
> @@ -6,7 +6,5 @@
>
> 8021q-objs := vlan.o vlan_dev.o
Please make this
> 8021q-y := vlan.o vlan_dev.o
To avoid confusion.
>
> -ifeq ($(CONFIG_PROC_FS),y)
> -8021q-objs += vlanproc.o
> -endif
> -
> +8021q-$(CONFIG_PROC_FS) += vlanproc.o
> +8021q-$(CONFIG_SYSFS) += vlan_sysfs.o
Sam
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html