net: bridge: add VNT option on kconfig file

this will enable virtual networks feature in linux RBridge

Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
net: Add VNT extention structure

Add basic VNT extension header and appropriate getter and setter

Signed-off-by: Emmanuel Hocdet <manu@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridhe: add vni structure

vni stands for virtual network identifier, it will be affected to each
net_bridge_port in order to tag taffic.
The vni structure will identify the list of net_bridge_port in current
net_bridge that are tagged with the same vni
net_bridge structre will contain a list of used vni in local bridge

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridge: add vni creation/destruction functions

add vni creation/destruction functions
vni port addociation/ dissociation functions

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridge: add vni_add_port ioctl command

add ioctl interface to attach a vni to a particular port

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridge: add vni check for local forwarding

check vni id before forwarding frames locally

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridge: add VNT header in encapsulation process

add a new VNT header when encapsulating frame with trill header

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>
net: bridge: add vni check on decapsulation

add a vni check on decapsulation process

Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
Signed-off-by: Kamel Haddadou <kamel@gandi.net>