• Eric Biederman's avatar
    veth: Allow setting the L3 MTU · 38d40815
    Eric Biederman authored
    The limitation to only 1500 byte mtu's limits the utility of the veth
    device for testing routing.  So implement implement a configurable
    MTU.
    
    For consistency I drop packets on the receive side when they are
    larger than the MTU.  I count those drops.  And I allow
    a little padding for vlan headers.
    
    I also test the mtu when a new device is created with netlink
    because that path currently bypasses the current mtu setting
    code.
    Signed-off-by: default avatarEric Biederman <ebiederm@aristanetworks.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    38d40815
veth.c 9.82 KB