net: bridge: vlan options: nest the tunnel id into a tunnel info attribute
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 20 Mar 2020 11:23:02 +0000 (13:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 15:52:20 +0000 (08:52 -0700)
commitfa388f29a9211352d41ce341caa8cf18761e21c9
tree4f0dc829184efe454ee0c7a83865f3735e1809b2
parentee9d0cb6c4f42f50cdc7513fd4b8534f80fcf327
net: bridge: vlan options: nest the tunnel id into a tunnel info attribute

While discussing the new API, Roopa mentioned that we'll be adding more
tunnel attributes and options in the future, so it's better to make it a
nested attribute, since this is still in net-next we can easily change it
and nest the tunnel id attribute under BRIDGE_VLANDB_ENTRY_TUNNEL_INFO.

The new format is:
 [BRIDGE_VLANDB_ENTRY]
     [BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]
         [BRIDGE_VLANDB_TINFO_ID]

Any new tunnel attributes can be nested under
BRIDGE_VLANDB_ENTRY_TUNNEL_INFO.

Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_bridge.h
net/bridge/br_vlan.c
net/bridge/br_vlan_options.c