]> git.ipfire.org Git - thirdparty/lxc.git/commit
network: Restores phys device MTU on container shutdown
authorThomas Parrott <thomas.parrott@canonical.com>
Thu, 9 May 2019 15:40:08 +0000 (16:40 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 18 May 2019 09:53:51 +0000 (11:53 +0200)
commit3ef7f2c0a2fac971e34aa13a3b310c1f4790e2dd
tree544ecb84c79e3ec1e950549f0943b1409ad8da79
parent463334b7fb3c98d359d4724063e3de9807de9925
network: Restores phys device MTU on container shutdown

The phys devices will now have their original MTUs recorded at start and restored at shutdown.

This is to protect the original phys device from having any container level MTU customisation being applied to the device once it is restored to the host.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/network.c
src/lxc/network.h