Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73553
b: refs/heads/master
c: 4d125de
h: refs/heads/master
i:
  73551: ea7d4ef
v: v3
  • Loading branch information
Rusty Russell committed Nov 12, 2007
1 parent 856a1a4 commit cf1a694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44332f7167dfb1ca04af96a2cff938c5e23433db
refs/heads/master: 4d125de3a5d130054df2285e542c1491d214d3e8
3 changes: 3 additions & 0 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ static void try_fill_recv(struct virtnet_info *vi)
struct scatterlist sg[1+MAX_SKB_FRAGS];
int num, err;

sg_init_table(sg, 1+MAX_SKB_FRAGS);
for (;;) {
skb = netdev_alloc_skb(vi->dev, MAX_PACKET_LEN);
if (unlikely(!skb))
Expand Down Expand Up @@ -231,6 +232,8 @@ static int start_xmit(struct sk_buff *skb, struct net_device *dev)
const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest;
DECLARE_MAC_BUF(mac);

sg_init_table(sg, 1+MAX_SKB_FRAGS);

pr_debug("%s: xmit %p %s\n", dev->name, skb, print_mac(mac, dest));

free_old_xmit_skbs(vi);
Expand Down

0 comments on commit cf1a694

Please sign in to comment.