Simon Horman 3d7b332092 gre: set inner_protocol on xmit
Ensure that the inner_protocol is set on transmit so that GSO segmentation,
which relies on that field, works correctly.

This is achieved by setting the inner_protocol in gre_build_header rather
than each caller of that function. It ensures that the inner_protocol is
set when gre_fb_xmit() is used to transmit GRE which was not previously the
case.

I have observed this is not the case when OvS transmits GRE using
lwtunnel metadata (which it always does).

Fixes: 38720352412a ("gre: Use inner_proto to obtain inner header protocol")
Cc: Pravin Shelar <pshelar@ovn.org>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-15 13:37:12 -07:00
..
2016-06-15 21:40:00 -07:00
2015-08-25 13:37:31 -07:00
2015-05-28 11:23:20 +08:00
2016-06-08 11:36:02 -07:00
2016-07-05 14:09:23 -07:00
2016-08-15 13:37:12 -07:00
2016-05-20 18:03:17 -04:00
2016-05-31 14:07:49 -07:00
2016-06-15 20:41:23 -07:00
2016-04-27 22:48:24 -04:00
2016-07-09 17:45:56 -04:00
2016-06-27 15:06:17 -04:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2014-05-23 16:28:53 -04:00