]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit793d7fa2394888ea9bb6b3b6df622201bc116994
tree4f0dc829184efe454ee0c7a83865f3735e1809b2
parent0f8ecc8367eebdb12f68d9a1071313611bc1f950
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