Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150925
b: refs/heads/master
c: 8981f01
h: refs/heads/master
i:
  150923: d93860e
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 12, 2009
1 parent ce93eae commit cc7065d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adf76cfe24dab32a54e2dd1f51534cea8277f32a
refs/heads/master: 8981f01001c616f58f1623ecadfab8b1ed758da7
3 changes: 2 additions & 1 deletion trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,11 @@ static void try_fill_recv_maxbufs(struct virtnet_info *vi)
for (;;) {
struct virtio_net_hdr *hdr;

skb = netdev_alloc_skb(vi->dev, MAX_PACKET_LEN);
skb = netdev_alloc_skb(vi->dev, MAX_PACKET_LEN + NET_IP_ALIGN);
if (unlikely(!skb))
break;

skb_reserve(skb, NET_IP_ALIGN);
skb_put(skb, MAX_PACKET_LEN);

hdr = skb_vnet_hdr(skb);
Expand Down

0 comments on commit cc7065d

Please sign in to comment.