net: bridge: vlan options: move the tunnel command to the nested attribute
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 20 Mar 2020 11:23:03 +0000 (13:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 15:52:20 +0000 (08:52 -0700)
commitc443758b21bc99100f5364219647972773aacfbe
tree7d47f7fb92d45f33c7dc2a6e57862ccc60a42967
parentfa388f29a9211352d41ce341caa8cf18761e21c9
net: bridge: vlan options: move the tunnel command to the nested attribute

Now that we have a nested tunnel info attribute we can add a separate
one for the tunnel command and require it explicitly from user-space. It
must be one of RTM_SETLINK/DELLINK. Only RTM_SETLINK requires a valid
tunnel id, DELLINK just removes it if it was set before. This allows us
to have all tunnel attributes and control in one place, thus removing
the need for an outside vlan info flag.

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_options.c