Xin Long
c122fda271
ip_gre: set tunnel hlen properly in erspan_tunnel_init
...
According to __gre_tunnel_init, tunnel->hlen should be set as the
headers' length between inner packet and outer iphdr.
It would be used especially to calculate a proper mtu when updating
mtu in tnl_update_pmtu. Now without setting it, a bigger mtu value
than expected would be updated, which hurts performance a lot.
This patch is to fix it by setting tunnel->hlen with:
tunnel->tun_hlen + tunnel->encap_hlen + sizeof(struct erspanhdr)
Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-01 22:30:32 -07:00
..
2017-09-04 19:05:16 -04:00
2017-06-20 13:30:14 -04:00
2017-06-26 23:13:22 -04:00
2017-06-16 11:48:40 -04:00
2017-08-09 22:43:50 -07:00
2017-07-04 22:35:19 +01:00
2017-08-09 16:28:45 -07:00
2017-09-09 17:56:05 -07:00
2017-05-02 11:46:28 -04:00
2017-09-05 11:51:47 -07:00
2017-07-01 07:39:08 -07:00
2017-08-09 16:57:38 -07:00
2017-09-19 20:34:29 +02:00
2017-09-28 10:33:22 -07:00
2017-08-09 16:57:38 -07:00
2017-08-31 11:43:47 -07:00
2017-09-03 17:08:42 -07:00
2017-09-28 10:12:53 -07:00
2017-06-16 11:48:40 -04:00
2017-08-22 13:40:23 -07:00
2017-09-05 20:03:35 -07:00
2017-10-01 22:30:32 -07:00
2017-10-01 03:46:42 +01:00
2017-07-04 22:35:17 +01:00
2017-07-03 02:31:22 -07:00
2017-09-01 17:42:05 -07:00
2017-08-15 20:23:23 -07:00
2017-09-26 10:24:34 -07:00
2017-07-04 22:35:16 +01:00
2017-07-04 22:35:15 +01:00
2017-09-06 15:22:02 +02:00
2017-06-07 15:53:24 -04:00
2017-08-09 16:57:38 -07:00
2017-09-05 09:11:45 -07:00
2017-09-18 17:35:32 +02:00
2017-09-30 16:13:31 +01:00
2017-07-04 22:35:17 +01:00
2017-06-23 00:38:31 +02:00
2017-08-29 15:16:52 -07:00
2017-09-12 20:37:31 -07:00
2017-09-28 10:24:31 -07:00
2017-08-09 16:57:38 -07:00
2017-06-16 11:48:39 -04:00
2017-08-09 16:57:38 -07:00
2017-09-07 20:07:13 -07:00
2017-06-13 11:07:51 +02:00
2017-09-05 14:39:17 -07:00
2017-09-21 15:13:52 -07:00
2017-09-26 21:16:29 -07:00
2017-09-21 15:31:03 -07:00
2017-08-24 21:57:50 -07:00
2017-09-11 22:01:44 -07:00
2017-08-07 14:48:48 -07:00
2017-10-01 04:03:35 +01:00
2017-09-14 09:55:21 -07:00
2017-08-21 17:06:42 -07:00
2017-08-28 15:38:18 -07:00
2017-09-18 22:51:07 +02:00
2017-08-03 09:13:51 -07:00
2017-09-01 17:42:05 -07:00
2017-09-20 15:36:18 -07:00
2017-09-04 13:25:20 +02:00
2017-08-29 15:16:52 -07:00
2017-08-16 11:27:52 -07:00