diff options
author | Toshiaki Makita | 2015-01-29 12:37:07 +0100 |
---|---|---|
committer | David S. Miller | 2015-01-31 03:03:47 +0100 |
commit | d4bcef3fbe887ff93b58da4fcf6df1eee416e8fa (patch) | |
tree | cf4ad1600694c60733d7696727d7112acbc6e85c /drivers/net/ethernet/intel/igbvf | |
parent | net: sctp: fix passing wrong parameter header to param_type2af in sctp_proces... (diff) | |
download | kernel-qcow2-linux-d4bcef3fbe887ff93b58da4fcf6df1eee416e8fa.tar.gz kernel-qcow2-linux-d4bcef3fbe887ff93b58da4fcf6df1eee416e8fa.tar.xz kernel-qcow2-linux-d4bcef3fbe887ff93b58da4fcf6df1eee416e8fa.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf')
0 files changed, 0 insertions, 0 deletions