commit | c80a8512ee3a8e1f7c3704140ea55f21dc6bd651 | [log] [tgz] |
---|---|---|
author | Li RongQing <roy.qing.li@gmail.com> | Mon Mar 11 20:30:44 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Mar 12 11:47:40 2013 -0400 |
tree | 5f0f6c5728e8794905031bd2110d70cdc0a4cb10 | |
parent | 45549a68a592dd1daed72aaf4df2295931b93138 [diff] |
net/core: move vlan_depth out of while loop in skb_network_protocol() [ Bug added added in commit 05e8ef4ab2d8087d (net: factor out skb_mac_gso_segment() from skb_gso_segment() ) ] move vlan_depth out of while loop, or else vlan_depth always is ETH_HLEN, can not be increased, and lead to infinite loop when frame has two vlan headers. Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>