diff options
author | Susant Sahani <ssahani@gmail.com> | 2015-10-21 12:35:33 +0530 |
---|---|---|
committer | Susant Sahani <ssahani@gmail.com> | 2015-11-03 09:28:03 +0530 |
commit | 3dbcf5795730047478079da6243fbcab9fe22842 (patch) | |
tree | 2638ead6be96b85d8282f155781dbe0437da6727 /src/network/networkd-netdev-vxlan.c | |
parent | 3342582deb95b6e364541435654eb8f6fa320f40 (diff) |
networkd: vxlan add option to set FDB entries
Add support to configures maximum number of FDB entries.
Diffstat (limited to 'src/network/networkd-netdev-vxlan.c')
-rw-r--r-- | src/network/networkd-netdev-vxlan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-vxlan.c b/src/network/networkd-netdev-vxlan.c index baf6dd6623..755ad2f934 100644 --- a/src/network/networkd-netdev-vxlan.c +++ b/src/network/networkd-netdev-vxlan.c @@ -91,6 +91,12 @@ static int netdev_vxlan_fill_message_create(NetDev *netdev, Link *link, sd_netli return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_AGEING attribute: %m"); } + if (v->max_fdb) { + r = sd_netlink_message_append_u32(m, IFLA_VXLAN_LIMIT, v->max_fdb); + if (r < 0) + return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_LIMIT attribute: %m"); + } + r = sd_netlink_message_append_u8(m, IFLA_VXLAN_UDP_CSUM, v->udpcsum); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_UDP_CSUM attribute: %m"); |