提交 845de8af 编写于 作者: J Joyce Yu 提交者: David S. Miller

niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC header was...

niu: VLAN_ETH_HLEN should be used to make sure that the whole MAC header was copied to the head buffer in the Vlan packets case
Signed-off-by: NJoyce Yu <joyce.yu@sun.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b6a71bfa
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册