]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb659b12ba72e81cbf812ec82123172284ccc254
tree5dee0a6c3911c54c07de1a0842e9c284de9f345f
parent0fd067b1954e152297d0e2632fbacc871eeab8a8
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