Re: [net-next,v2] ip_gre: check packet length and mtu correctly in erspan tx

2017-10-07 Thread David Miller
From: William Tu Date: Thu, 5 Oct 2017 12:07:12 -0700 > 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") >

Re: [net-next,v2] ip_gre: check packet length and mtu correctly in erspan tx

2017-10-06 Thread Xin Long
On Fri, Oct 6, 2017 at 3:07 AM, William Tu wrote: > 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:

[net-next,v2] ip_gre: check packet length and mtu correctly in erspan tx

2017-10-05 Thread William Tu
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 ERSPA