]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bridge: vlan tunnel id info range fill size calc cleanups
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 8 Feb 2017 00:12:00 +0000 (16:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 19:39:19 +0000 (14:39 -0500)
commit8ef9594764617e3fd4500205b080b53c45c14c4b
tree23f2e375007afbce4b90ea32b98b3903c5fca0bb
parent97e219b7c1f75b14b29abe28ad53e8709e8d15e5
bridge: vlan tunnel id info range fill size calc cleanups

This fixes a bug and cleans up tunnelid range size
calculation code by using consistent variable names
and checks in size calculation and fill functions.

tested for a few cases of vlan-vni range mappings:
(output from patched iproute2):
$bridge vlan showtunnel
port     vid        tunid
vxlan0   100-105    1000-1005
         200        2000
         210        2100
         211-213    2100-2102
         214        2104
         216-217    2108-2109
         219        2119

Fixes: efa5356b0d97 ("bridge: per vlan dst_metadata netlink support")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink_tunnel.c