]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add sysfs framework for VLAN
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 2 Jul 2013 09:04:35 +0000 (11:04 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 19 Oct 2013 15:28:42 +0000 (17:28 +0200)
commitcc6dde82c5a2e59da5bfb71b60a855a15a4d6329
tree6c74c3ad0053e06e3488282f1c39a2af38e88876
parente1d5b495c638d5c22b62360adeb516fc45faf4e6
batman-adv: add sysfs framework for VLAN

Each VLAN can now have its own set of attributes which are
exported through a new subfolder in the sysfs tree.
Each VLAN created on top of a soft_iface will have its own
subfolder.

The subfolder is named "vlan%VID" and it is created inside
the "mesh" sysfs folder belonging to batman-adv.

Attributes corresponding to the untagged LAN are stored in
the root sysfs folder as before.

This patch also creates all the needed macros and data
structures to easily handle new VLAN spacific attributes.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/soft-interface.c
net/batman-adv/soft-interface.h
net/batman-adv/sysfs.c
net/batman-adv/sysfs.h