Files
twx-linux/include/linux
Vlad Yasevich 1b5286ba9f vlan: Fix tcp checksum offloads in Q-in-Q vlans
commit 35d2f80b07 upstream.

It appears that TCP checksum offloading has been broken for
Q-in-Q vlans.  The behavior was execerbated by the
series
    commit afb0bc972b ("Merge branch 'stacked_vlan_tso'")
that that enabled accleleration features on stacked vlans.

However, event without that series, it is possible to trigger
this issue.  It just requires a lot more specialized configuration.

The root cause is the interaction between how
netdev_intersect_features() works, the features actually set on
the vlan devices and HW having the ability to run checksum with
longer headers.

The issue starts when netdev_interesect_features() replaces
NETIF_F_HW_CSUM with a combination of NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM,
if the HW advertises IP|IPV6 specific checksums.  This happens
for tagged and multi-tagged packets.   However, HW that enables
IP|IPV6 checksum offloading doesn't gurantee that packets with
arbitrarily long headers can be checksummed.

This patch disables IP|IPV6 checksums on the packet for multi-tagged
packets.

CC: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
CC: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Acked-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-07 12:05:59 +02:00
..
…
2015-06-25 11:49:31 +03:00
…
…
…
2016-08-20 18:09:25 +02:00
…
…
…
…
…
…
…
2015-03-25 20:28:11 -04:00
…
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2016-03-09 15:34:52 -08:00
…
2012-12-02 00:05:12 +00:00
…
2011-03-11 14:25:50 +00:00
2015-11-07 10:40:47 -07:00
2009-11-20 20:13:39 +01:00
…
…
2013-11-15 09:32:21 +09:00
…
…
2008-12-25 11:01:43 +11:00
2015-02-12 18:54:15 -08:00
…
2015-09-08 15:35:28 -07:00
2016-07-27 09:47:33 -07:00
2011-01-10 08:51:44 -08:00
2015-10-18 10:14:39 -07:00
2010-08-04 11:00:45 +02:00
2012-02-20 19:46:36 +11:00
2014-11-10 09:27:30 -07:00
2009-09-14 17:41:42 -07:00
2012-09-30 18:02:20 -07:00
…
2012-10-16 18:49:15 -07:00
…
…
2013-05-07 18:38:27 -07:00
…
…
2017-05-14 13:32:59 +02:00
2014-12-31 13:06:50 -05:00
2015-10-30 01:47:27 -04:00
2014-10-09 11:35:48 +03:00
2015-06-24 17:49:45 -07:00
…
…
2009-06-18 13:04:05 -07:00
…
2014-08-06 18:01:24 -07:00
2015-05-12 10:46:53 +02:00
…
…
…
2010-02-09 11:13:56 +01:00
…
2010-03-07 22:17:09 +01:00
…
…
…
…
2011-07-01 10:37:15 +02:00
2015-05-05 13:40:42 -06:00
2014-06-06 16:08:13 -07:00
…
2016-04-20 15:42:02 +09:00
…
…
…
2015-10-23 05:44:28 -07:00
…
…
…
…
2015-08-27 19:40:58 -04:00
…
2006-10-10 15:37:22 -07:00
2012-03-20 12:47:48 +01:00
…
2012-03-20 12:47:47 +01:00
2013-06-17 16:38:57 -07:00
…
2015-06-25 12:06:45 +02:00
2014-03-13 12:11:00 +10:30
…
…
…
2016-10-28 03:01:30 -04:00
2015-08-18 15:49:15 -07:00
…
2011-01-24 14:45:11 +10:30
…
…
2011-09-16 19:20:20 -04:00
…
…
…
…
2015-11-23 09:44:58 +01:00
2006-06-05 12:29:17 -07:00
…
2014-05-27 17:38:11 -07:00
2013-12-26 13:29:35 -05:00
…
…
…
2015-04-14 16:49:05 -07:00
2015-10-27 18:55:31 -07:00
2015-06-24 17:49:41 -07:00
2015-10-20 22:10:45 +08:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
…
…
2015-06-25 04:20:04 -04:00
2016-03-03 15:07:28 -08:00
2014-01-25 03:14:05 -05:00
2012-12-11 17:22:27 -08:00
2013-05-04 14:47:26 -04:00
…
…
…
…
…
…
2015-11-06 17:50:42 -08:00
…
…
…
…
2016-12-08 07:15:24 +01:00
2014-07-09 14:58:37 +01:00
2015-04-12 21:03:31 +02:00
…
…
…
…
…
2015-10-09 17:00:32 -04:00
2013-10-17 00:36:06 +02:00
2011-11-02 16:07:02 -07:00
2015-10-06 17:08:19 +02:00
2011-03-31 11:26:23 -03:00
…
…
2015-10-22 08:59:18 -07:00
…
2010-02-10 17:47:17 -08:00
…
…
…
2015-05-26 15:23:23 +02:00
…
2012-10-06 03:05:01 +09:00
2015-06-25 01:13:43 +02:00
…
2013-06-17 16:38:57 -07:00
…
…
…
…
…
2014-08-08 15:57:26 -07:00
…
2016-09-30 10:18:37 +02:00
2015-04-11 15:53:35 -04:00
…
2014-06-12 00:21:11 -04:00
2010-08-09 16:48:44 -04:00
2016-10-28 03:01:30 -04:00
2013-04-30 15:50:12 +05:30
2014-06-04 16:53:57 -07:00
…
…
2015-06-25 17:00:39 -07:00
…
…
2016-04-12 09:08:35 -07:00
2015-08-17 11:25:28 -07:00
2015-10-01 09:57:59 -07:00
…
…
2015-10-19 01:01:21 +02:00
2016-06-01 12:15:52 -07:00
…
2015-11-23 09:44:58 +01:00
…
2014-11-28 16:08:16 +01:00
2015-12-04 08:38:42 -07:00
…
…
2005-04-16 15:20:36 -07:00
2014-04-07 16:35:53 -07:00
…
…
2015-12-13 14:30:59 -08:00
…
2015-11-13 20:34:33 -05:00
2011-01-13 08:03:24 -08:00
2013-10-17 15:53:09 -04:00
2015-09-08 15:35:28 -07:00
…
…