提交 d65a68a8 编写于 作者: P Paulius Zaleckas 提交者: David S. Miller

hso: convert dev_alloc_skb() to netdev_alloc_skb()

Signed-off-by: NPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b07878e5
...@@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt, ...@@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
continue; continue;
} }
/* Allocate an sk_buff */ /* Allocate an sk_buff */
odev->skb_rx_buf = dev_alloc_skb(frame_len); odev->skb_rx_buf = netdev_alloc_skb(odev->net,
frame_len);
if (!odev->skb_rx_buf) { if (!odev->skb_rx_buf) {
/* We got no receive buffer. */ /* We got no receive buffer. */
D1("could not allocate memory"); D1("could not allocate memory");
odev->rx_parse_state = WAIT_SYNC; odev->rx_parse_state = WAIT_SYNC;
return; return;
} }
/* Here's where it came from */
odev->skb_rx_buf->dev = odev->net;
/* Copy what we got so far. make room for iphdr /* Copy what we got so far. make room for iphdr
* after tail. */ * after tail. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册