aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/tipc_config.h
diff options
context:
space:
mode:
authorGhantaKrishnamurthy MohanKrishna <mohan.krishna.ghanta.krishnamurthy@ericsson.com>2018-04-19 11:06:18 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-20 11:04:05 -0400
commita4dfa72d0acd1c99a160e25c099849ae37ad13fd (patch)
tree675821e7e385b24adb94d998284dddf35b498380 /include/uapi/linux/tipc_config.h
parentliquidio: Added ndo_get_vf_stats support (diff)
downloadwireguard-linux-a4dfa72d0acd1c99a160e25c099849ae37ad13fd.tar.xz
wireguard-linux-a4dfa72d0acd1c99a160e25c099849ae37ad13fd.zip
tipc: set default MTU for UDP media
Currently, all bearers are configured with MTU value same as the underlying L2 device. However, in case of bearers with media type UDP, higher throughput is possible with a fixed and higher emulated MTU value than adapting to the underlying L2 MTU. In this commit, we introduce a parameter mtu in struct tipc_media and a default value is set for UDP. A default value of 14k was determined by experimentation and found to have a higher throughput than 16k. MTU for UDP bearers are assigned the above set value of media MTU. Acked-by: Ying Xue <ying.xue@windriver.com> Acked-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: GhantaKrishnamurthy MohanKrishna <mohan.krishna.ghanta.krishnamurthy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/tipc_config.h')
-rw-r--r--include/uapi/linux/tipc_config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/tipc_config.h b/include/uapi/linux/tipc_config.h
index 3f29e3c8ed06..4b2c93b1934c 100644
--- a/include/uapi/linux/tipc_config.h
+++ b/include/uapi/linux/tipc_config.h
@@ -185,6 +185,11 @@
#define TIPC_DEF_LINK_WIN 50
#define TIPC_MAX_LINK_WIN 8191
+/*
+ * Default MTU for UDP media
+ */
+
+#define TIPC_DEF_LINK_UDP_MTU 14000
struct tipc_node_info {
__be32 addr; /* network address of node */