summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev-vxlan.h
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@gmail.com>2015-11-28 08:05:28 +0530
committerSusant Sahani <ssahani@gmail.com>2016-01-19 12:17:54 +0530
commitea0288d17c0713eea601ea6c7715a649842d229d (patch)
treedfc30bf04e4da03f74aa09607c9b80706ae0dc61 /src/network/networkd-netdev-vxlan.h
parent17af840b1df9ca3664b96bbc2414702b47658049 (diff)
networkd: VXLAN add support to configure port
This patch add support to configure port PortRange: VXLAN bases source UDP port based on flow to help the receiver to be able to load balance based on outer header flow. DestinatinPort: Allow configuring the default destination port on a per-device basis.
Diffstat (limited to 'src/network/networkd-netdev-vxlan.h')
-rw-r--r--src/network/networkd-netdev-vxlan.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-vxlan.h b/src/network/networkd-netdev-vxlan.h
index 16977ea6a9..00142968ae 100644
--- a/src/network/networkd-netdev-vxlan.h
+++ b/src/network/networkd-netdev-vxlan.h
@@ -40,6 +40,8 @@ struct VxLan {
unsigned ttl;
unsigned max_fdb;
+ uint16_t dest_port;
+
usec_t fdb_ageing;
bool learning;
@@ -51,6 +53,8 @@ struct VxLan {
bool udp6zerocsumtx;
bool udp6zerocsumrx;
bool group_policy;
+
+ struct ifla_vxlan_port_range port_range;
};
extern const NetDevVTable vxlan_vtable;
@@ -65,3 +69,24 @@ int config_parse_vxlan_group_address(const char *unit,
const char *rvalue,
void *data,
void *userdata);
+int config_parse_port_range(const char *unit,
+ const char *filename,
+ unsigned line,
+ const char *section,
+ unsigned section_line,
+ const char *lvalue,
+ int ltype,
+ const char *rvalue,
+ void *data,
+ void *userdata);
+
+int config_parse_destination_port(const char *unit,
+ const char *filename,
+ unsigned line,
+ const char *section,
+ unsigned section_line,
+ const char *lvalue,
+ int ltype,
+ const char *rvalue,
+ void *data,
+ void *userdata);