aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-08-14 11:29:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-14 11:29:31 +0000
commit4c3dbc5ded977eaab79e9ef2e5d4a0e3f3809650 (patch)
tree9bbce870557acc8543eadbc469b1bb0ef2cff667 /mcp
parent91ca434abb10aa14488a6bcd467c8228ea149752 (diff)
parent890316df4cfa1440c6e5d4d26c8eba721de7fc27 (diff)
Merge "[jump] Enable jumbo frames for vnet devices"
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 4e4f36908..c566cc993 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -546,6 +546,13 @@ function wait_for {
)
}
+function do_udev_cfg {
+ local _conf='/etc/udev/rules.d/99-opnfv-fuel-vnet-mtu.rules'
+ # http://linuxaleph.blogspot.com/2013/01/how-to-network-jumbo-frames-to-kvm-guest.html
+ echo 'SUBSYSTEM=="net", ACTION=="add", KERNEL=="vnet*", RUN+="/sbin/ip link set mtu 9000 dev '"'"%k"'"'"' |& sudo tee "${_conf}"
+ sudo udevadm control --reload || true
+}
+
function do_sysctl_cfg {
local _conf='/etc/sysctl.d/99-opnfv-fuel-bridge.conf'
# https://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf