]> git.baikalelectronics.ru Git - kernel.git/commit
8021q: fix mac_len recomputation in vlan_untag()
authorAntonio Quartulli <ordex@autistici.org>
Tue, 2 Oct 2012 06:14:17 +0000 (06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2012 02:45:57 +0000 (22:45 -0400)
commitcc54e89d1cefa0ba17bda3f1a8d68f4e3f409ee9
tree1a36086347433ad7205d996cdd2713f28dc51933
parentc940bf0afb736b9fb05729a1878dc6728460b954
8021q: fix mac_len recomputation in vlan_untag()

skb_reset_mac_len() relies on the value of the skb->network_header pointer,
therefore we must wait for such pointer to be recalculated before computing
the new mac_len value.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c