geneve: fix max_mtu setting
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sat, 2 Jul 2016 07:02:48 +0000 (15:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 21:50:22 +0000 (14:50 -0700)
commitd5d5e8d55732c7c35c354e45e3b0af2795978a57
tree60310c1afeab8627c1f216680a230a4d658a5e5b
parentb291c418172f2cfbe009d81cd9a92f7a2de7c579
geneve: fix max_mtu setting

For ipv6+udp+geneve encapsulation data, the max_mtu should subtract
sizeof(ipv6hdr), instead of sizeof(iphdr).

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c