]> git.proxmox.com Git - mirror_ovs.git/commit
ip_gre: check packet length and mtu correctly in erspan tx
authorWilliam Tu <u9012063@gmail.com>
Fri, 23 Feb 2018 00:50:36 +0000 (16:50 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 22 May 2018 03:17:31 +0000 (20:17 -0700)
commit4f53627e2aef99c7f9132439a372d1de112918b5
tree36b9060fd3e30eb77a076aaef1cf8f4ca977b322
parent5bff8644a1fe946c9cb2245eef8e93ec1526cb53
ip_gre: check packet length and mtu correctly in erspan tx

Upstream commit:
    commit f192970de860d3ab90aa9e2a22853201a57bde78
    Author: William Tu <u9012063@gmail.com>
    Date:   Thu Oct 5 12:07:12 2017 -0700

    ip_gre: check packet length and mtu correctly in erspan tx

    Similarly to early patch for erspan_xmit(), the ARPHDR_ETHER device
    is the length of the whole ether packet.  So skb->len should subtract
    the dev->hard_header_len.

Fixes: 1a66a836da63 ("gre: add collect_md mode to ERSPAN tunnel")
Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Signed-off-by: William Tu <u9012063@gmail.com>
Cc: Xin Long <lucien.xin@gmail.com>
Cc: David Laight <David.Laight@aculab.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: William Tu <u9012063@gmail.com>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
datapath/linux/compat/ip_gre.c