提交 aaf58060 编写于 作者: C Chen-Li Tien 提交者: David S. Miller

[PKTGEN]: Fix oops when used with balance-tlb bonding

Signed-off-by: NChen-Li Tien <cltien@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8d1502de
......@@ -2149,6 +2149,8 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
skb->mac.raw = ((u8 *) iph) - 14 - pkt_dev->nr_labels*sizeof(u32);
skb->dev = odev;
skb->pkt_type = PACKET_HOST;
skb->nh.iph = iph;
skb->h.uh = udph;
if (pkt_dev->nfrags <= 0)
pgh = (struct pktgen_hdr *)skb_put(skb, datalen);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册