diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2020-03-17 15:08:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-18 08:47:12 +0300 |
commit | 569da08228086ac6f7053d71c6cb713c1f115209 (patch) | |
tree | cccd412e56c23ec98a2ead61f057611f13f79af1 /block | |
parent | 188c67dd1906eea5542268e4513ad6253fbf9297 (diff) | |
download | linux-569da08228086ac6f7053d71c6cb713c1f115209.tar.xz |
net: bridge: vlan options: add support for tunnel mapping set/del
This patch adds support for manipulating vlan/tunnel mappings. The
tunnel ids are globally unique and are one per-vlan. There were two
trickier issues - first in order to support vlan ranges we have to
compute the current tunnel id in the following way:
- base tunnel id (attr) + current vlan id - starting vlan id
This is in line how the old API does vlan/tunnel mapping with ranges. We
already have the vlan range present, so it's redundant to add another
attribute for the tunnel range end. It's simply base tunnel id + vlan
range. And second to support removing mappings we need an out-of-band way
to tell the option manipulating function because there are no
special/reserved tunnel id values, so we use a vlan flag to denote the
operation is tunnel mapping removal.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions