]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-bridge-vlan-options-nest-the-tunnel-options'
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 15:52:20 +0000 (08:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 15:52:20 +0000 (08:52 -0700)
commit75abfe39c8ce828c05a3b9a475551afa11c22675
tree7d47f7fb92d45f33c7dc2a6e57862ccc60a42967
parent0f8ecc8367eebdb12f68d9a1071313611bc1f950
parent59e1394e5a354e250f961b178f3c3cec6f5e301c
Merge branch 'net-bridge-vlan-options-nest-the-tunnel-options'

Nikolay Aleksandrov says:

====================
net: bridge: vlan options: nest the tunnel options

After a discussion with Roopa about the new tunnel vlan option, she
suggested that we'll be adding more tunnel options and attributes, so
it'd be better to have them all grouped together under one main vlan
entry tunnel attribute instead of making them all main attributes. Since
the tunnel code was added in this net-next cycle and still hasn't been
released we can easily nest the BRIDGE_VLANDB_ENTRY_TUNNEL_ID attribute
in BRIDGE_VLANDB_ENTRY_TUNNEL_INFO and allow for any new tunnel
attributes to be added there. In addition one positive side-effect is
that we can remove the outside vlan info flag which controlled the
operation (setlink/dellink) and move it under a new nested attribute so
user-space can specify it explicitly.

Thus the vlan tunnel format becomes:
 [BRIDGE_VLANDB_ENTRY]
     [BRIDGE_VLANDB_ENTRY_TUNNEL_INFO]
         [BRIDGE_VLANDB_TINFO_ID]
         [BRIDGE_VLANDB_TINFO_CMD]
         ...
====================

Signed-off-by: David S. Miller <davem@davemloft.net>