xen-netfront, xen-netback: Use correct minimum MTU values
authorMohammed Gamal <mgamal@redhat.com>
Mon, 16 Oct 2017 13:20:32 +0000 (15:20 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 16 Oct 2017 20:00:44 +0000 (16:00 -0400)
commite1043a4bb9fce6cfc7d55c5767e429a18ac8c4eb
tree5dee0a6c3911c54c07de1a0842e9c284de9f345f
parenteac779aa509d453a55da0ea4302bdb79c4e0854f
xen-netfront, xen-netback: Use correct minimum MTU values

RFC791 specifies the minimum MTU to be 68, while xen-net{front|back}
drivers use a minimum value of 0.

When set MTU to 0~67 with xen_net{front|back} driver, the network
will become unreachable immediately, the guest can no longer be pinged.

xen_net{front|back} should not allow the user to set this value which causes
network problems.

Reported-by: Chen Shi <cheshi@redhat.com>
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/net/xen-netback/interface.c
drivers/net/xen-netfront.c