Roopa Prabhu 8ef9594764 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>
2017-02-08 14:39:19 -05:00
..
2017-02-06 22:53:13 -05:00
2017-02-06 22:53:13 -05:00
2017-02-06 22:53:13 -05:00
2017-01-24 12:39:52 -05:00
2017-01-24 12:39:52 -05:00
2015-09-17 17:18:37 -07:00
2017-02-06 22:53:13 -05:00
2017-02-06 22:53:13 -05:00
2017-02-06 22:53:13 -05:00
2017-02-06 22:53:13 -05:00
2017-01-24 12:39:52 -05:00