]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/network.c
set mtu for netdev
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 22 Mar 2009 21:52:17 +0000 (22:52 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 22 Mar 2009 21:52:17 +0000 (22:52 +0100)
commit75d09f83b82f35a610f4922e06ad897692062fab
tree7a9a7899448873ba786fa71829766dd0dcabca7d
parent442cbbe65ba30d8bf4314e61ddf3e67d7c83d95a
set mtu for netdev

When setting the mtu size at the veth creation, the mtu is only set
on one side of the veth tunnel, the one attached to the bridge.

I changed a little the code and added the device_set_mtu function so
it is called after the veth has been created on both side.

That moves the mtu veth specific code inside the veth function creation.

Hopefully this code could be reused later for different future network
configuration (eg. ip tunnel).

The mtu option will be simply ignored in case of macvlan network configuration
because the macvlan network device inherit the mtu of the physical link.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc_conf.c
src/lxc/network.c
src/lxc/network.h