From: Shane Chen Date: Thu, 1 Jun 2017 05:36:41 +0000 (+0800) Subject: adding warning for mtu ignoring X-Git-Tag: lxc-2.1.0~111^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1607%2Fhead;p=thirdparty%2Flxc.git adding warning for mtu ignoring Signed-off-by: Shane Chen --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index b65c4add8..0d3269d84 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3351,6 +3351,8 @@ int lxc_assign_network(const char *lxcpath, char *lxcname, netdev = iterator->elem; if (netdev->type == LXC_NET_VETH && !am_root) { + if (netdev->mtu) + INFO("mtu ignored due to insufficient privilege"); if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid)) return -1; // lxc-user-nic has moved the nic to the new ns.