Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95758
b: refs/heads/master
c: 0527168
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed May 2, 2008
1 parent 0fef5d9 commit 7cceb23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: cb38fa23c17519faf46a76d2f71a8430705fe474
refs/heads/master: 0527168522c25121bdd5d5f1d3c5b484d972ea14
8 changes: 4 additions & 4 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ static void receive_skb(struct net_device *dev, struct sk_buff *skb,
static void try_fill_recv(struct virtnet_info *vi)
{
struct sk_buff *skb;
struct scatterlist sg[1+MAX_SKB_FRAGS];
struct scatterlist sg[2+MAX_SKB_FRAGS];
int num, err;

sg_init_table(sg, 1+MAX_SKB_FRAGS);
sg_init_table(sg, 2+MAX_SKB_FRAGS);
for (;;) {
skb = netdev_alloc_skb(vi->dev, MAX_PACKET_LEN);
if (unlikely(!skb))
Expand Down Expand Up @@ -231,11 +231,11 @@ static int start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct virtnet_info *vi = netdev_priv(dev);
int num, err;
struct scatterlist sg[1+MAX_SKB_FRAGS];
struct scatterlist sg[2+MAX_SKB_FRAGS];
struct virtio_net_hdr *hdr;
const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest;

sg_init_table(sg, 1+MAX_SKB_FRAGS);
sg_init_table(sg, 2+MAX_SKB_FRAGS);

pr_debug("%s: xmit %p " MAC_FMT "\n", dev->name, skb,
dest[0], dest[1], dest[2],
Expand Down

0 comments on commit 7cceb23

Please sign in to comment.