]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/batman-adv/soft-interface.c
batman-adv: add per VLAN interface attribute framework
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 2 Jul 2013 09:04:34 +0000 (11:04 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 19 Oct 2013 15:28:08 +0000 (17:28 +0200)
commit5d2c05b213377694a2aa8ce1ed9b23f7c39b0569
treefbec175cf4dd4cb9b2c699b1b8d93883933fa324
parentbe1db4f6615b5e6156c807ea8985171c215c2d57
batman-adv: add per VLAN interface attribute framework

Since batman-adv is now fully VLAN-aware, a proper framework
able to handle per-vlan-interface attributes is needed.

Those attributes will affect the associated VLAN interface
only, rather than the real soft_iface (which would result
in every vlan interface having the same attribute
configuration).

To make the code simpler and easier to extend, attributes
associated to the standalone soft_iface are now treated
like belonging to yet another vlan having a special vid.
This vid is different from the others because it is made up
by all zeros and the VLAN_HAS_TAG bit is not set.

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