Toshiaki Makita d4bcef3fbe net: Fix vlan_get_protocol for stacked vlan
vlan_get_protocol() could not get network protocol if a skb has a 802.1ad
vlan tag or multiple vlans, which caused incorrect checksum calculation
in several drivers.

Fix vlan_get_protocol() to retrieve network protocol instead of incorrect
vlan protocol.

As the logic is the same as skb_network_protocol(), create a common helper
function __vlan_get_protocol() and call it from existing functions.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-30 18:03:47 -08:00
..
2014-09-22 16:48:47 +09:00
2014-12-14 14:57:16 -08:00
2014-12-02 16:20:59 -08:00
2014-11-24 17:24:08 -05:00
2014-12-15 18:19:03 -08:00
2014-11-25 20:11:12 -08:00
2014-12-14 14:57:16 -08:00
2014-12-14 16:10:09 -08:00
2014-12-18 19:08:10 -08:00
2014-12-14 16:10:09 -08:00
2014-12-19 22:55:06 +01:00
2014-12-14 16:10:09 -08:00
2014-11-10 09:27:30 -07:00
2014-11-04 17:34:15 -08:00
2014-10-09 11:35:48 +03:00
2014-10-08 16:01:41 -04:00
2014-12-11 17:48:14 -08:00
2014-09-29 15:37:01 -04:00
2014-12-16 14:53:01 -08:00
2014-12-18 09:39:51 +01:00
2014-12-17 08:26:51 -05:00
2014-10-09 22:25:58 -04:00
2014-10-24 00:14:36 +02:00
2014-11-25 16:38:32 -05:00
2014-11-25 16:38:32 -05:00
2014-11-04 13:18:52 -07:00
2014-11-04 13:29:38 +00:00
2014-12-11 13:06:58 -08:00
2014-12-14 14:57:16 -08:00
2014-11-06 14:57:27 -08:00
2014-12-17 06:43:56 -05:00
2014-09-23 21:40:48 -07:00
2014-11-28 16:08:16 +01:00
2014-09-16 15:02:55 -06:00
2014-12-09 12:05:24 +02:00
2014-12-15 23:49:28 +02:00