• Alexey Kodanev's avatar
    geneve: configure MTU based on a lower device · c40e89fd
    Alexey Kodanev authored
    Currently, on a new link creation or when 'remote' address parameter
    is updated, an MTU is not changed and always equals 1500. When a lower
    device has a larger MTU, it might not be efficient, e.g. for UDP, and
    requires the manual MTU adjustments to match the MTU of the lower
    device.
    
    This patch tries to automate this process, finds a lower device using
    the 'remote' address parameter, then uses its MTU to tune GENEVE's MTU:
      * on a new link creation
      * when 'remote' parameter is changed
    
    Also with this patch, the MTU from a user, on a new link creation, is
    passed to geneve_change_mtu() where it is verified, and MTU adjustments
    with a lower device is skipped in that case. Prior that change, it was
    possible to set the invalid MTU values on a new link creation.
    Signed-off-by: default avatarAlexey Kodanev <alexey.kodanev@oracle.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c40e89fd
geneve.c 45.8 KB