]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59e1394e5a354e250f961b178f3c3cec6f5e301c
tree7d47f7fb92d45f33c7dc2a6e57862ccc60a42967
parent793d7fa2394888ea9bb6b3b6df622201bc116994
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