adding warning for mtu ignoring

Signed-off-by: Shane Chen <ss1ha3tw@gmail.com>
This commit is contained in:
Shane Chen 2017-06-01 13:36:41 +08:00
parent 03931c9e18
commit 72ccbbe1aa

View File

@ -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.