diff options
author | 2017-10-05 12:07:12 -0700 | |
---|---|---|
committer | 2017-10-07 23:17:21 +0100 | |
commit | f192970de860d3ab90aa9e2a22853201a57bde78 (patch) | |
tree | 7bf861cfcde3af50e17f534f24fa73d7892fe8fb /drivers/net/hyperv/hyperv_net.h | |
parent | net: phonet: mark phonet_protocol as const (diff) | |
download | wireguard-linux-f192970de860d3ab90aa9e2a22853201a57bde78.tar.xz wireguard-linux-f192970de860d3ab90aa9e2a22853201a57bde78.zip |
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>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
0 files changed, 0 insertions, 0 deletions