Skip to content

Commit

Permalink
niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC hea…
Browse files Browse the repository at this point in the history
…der was copied to the head buffer in the Vlan packets case

Signed-off-by: Joyce Yu <joyce.yu@sun.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joyce Yu authored and David S. Miller committed Oct 22, 2009
1 parent b6a71bf commit 845de8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3545,7 +3545,7 @@ static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
rp->rcr_index = index;

skb_reserve(skb, NET_IP_ALIGN);
__pskb_pull_tail(skb, min(len, NIU_RXPULL_MAX));
__pskb_pull_tail(skb, min(len, VLAN_ETH_HLEN));

rp->rx_packets++;
rp->rx_bytes += skb->len;
Expand Down

0 comments on commit 845de8a

Please sign in to comment.