Re: [PATCH v2] geneve: fix max_mtu setting

2016-07-04 Thread David Miller
From: Haishuang Yan Date: Sat, 2 Jul 2016 15:02:48 +0800 > For ipv6+udp+geneve encapsulation data, the max_mtu should subtract > sizeof(ipv6hdr), instead of sizeof(iphdr). > > Signed-off-by: Haishuang Yan Applied and queued up for -stable, thanks.

[PATCH v2] geneve: fix max_mtu setting

2016-07-02 Thread Haishuang Yan
For ipv6+udp+geneve encapsulation data, the max_mtu should subtract sizeof(ipv6hdr), instead of sizeof(iphdr). Signed-off-by: Haishuang Yan --- Changes in v2: - As suggested by Jesse Gross, treat AF_UNSPEC same as AF_INET4 to avoid disallowing potentially valid configrations. --- drivers/net/