bridge: vlan dst_metadata hooks in ingress and egress paths
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 1 Feb 2017 06:59:55 +0000 (22:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 20:21:22 +0000 (15:21 -0500)
commit11538d039ac6efcf4f1a6c536e1b87cd3668a9fd
tree48288a17219c037942267db3c6c469cf47bf7ecb
parentefa5356b0d9753b9d7e63e41459eba106cce30f3
bridge: vlan dst_metadata hooks in ingress and egress paths

- ingress hook:
    - if port is a tunnel port, use tunnel info in
      attached dst_metadata to map it to a local vlan
- egress hook:
    - if port is a tunnel port, use tunnel info attached to
      vlan to set dst_metadata on the skb

CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c
net/bridge/br_input.c
net/bridge/br_private.h
net/bridge/br_private_tunnel.h
net/bridge/br_vlan.c
net/bridge/br_vlan_tunnel.c