summaryrefslogtreecommitdiffstats
path: root/include/linux/if_link.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-10-09 20:35:50 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-10 22:41:21 -0400
commit05f47d69c44902c265dc2ad5a960978a97b45e3d (patch)
treed548dda11ebf45f143c515fbc291679c3f91584c /include/linux/if_link.h
parent1cad87156b3e79d25731cdcbfa9e149bf3e08f60 (diff)
downloadlinux-05f47d69c44902c265dc2ad5a960978a97b45e3d.tar.gz
linux-05f47d69c44902c265dc2ad5a960978a97b45e3d.tar.bz2
linux-05f47d69c44902c265dc2ad5a960978a97b45e3d.zip
vxlan: allow configuring port range
VXLAN bases source UDP port based on flow to help the receiver to be able to load balance based on outer header flow. This patch restricts the port range to the normal UDP local ports, and allows overriding via configuration. It also uses jhash of Ethernet header when looking at flows with out know L3 header. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r--include/linux/if_link.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index e4dad4ddf085..3265f332998a 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -284,10 +284,16 @@ enum {
IFLA_VXLAN_LEARNING,
IFLA_VXLAN_AGEING,
IFLA_VXLAN_LIMIT,
+ IFLA_VXLAN_PORT_RANGE,
__IFLA_VXLAN_MAX
};
#define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1)
+struct ifla_vxlan_port_range {
+ __be16 low;
+ __be16 high;
+};
+
/* SR-IOV virtual function management section */
enum {