Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171183
b: refs/heads/master
c: baac856
h: refs/heads/master
i:
  171181: 5e67ad8
  171179: f11c169
  171175: a4f62b0
  171167: 68dd5c5
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 6, 2009
1 parent fdb27ef commit 34ea432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: bf8e56bfc4fcfcef9f08e6233dc619706807893a
refs/heads/master: baac8564547ac7f944af1c2e8cc6fdd57f2836a4
5 changes: 3 additions & 2 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ struct pktgen_dev {
__u16 cur_udp_src;
__u16 cur_queue_map;
__u32 cur_pkt_size;
__u32 last_pkt_size;

__u8 hh[14];
/* = {
Expand Down Expand Up @@ -3434,7 +3435,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
pkt_dev->clone_count--; /* back out increment, OOM */
return;
}

pkt_dev->last_pkt_size = pkt_dev->skb->len;
pkt_dev->allocated_skbs++;
pkt_dev->clone_count = 0; /* reset counter */
}
Expand All @@ -3461,7 +3462,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
pkt_dev->last_ok = 1;
pkt_dev->sofar++;
pkt_dev->seq_num++;
pkt_dev->tx_bytes += pkt_dev->cur_pkt_size;
pkt_dev->tx_bytes += pkt_dev->last_pkt_size;
break;
default: /* Drivers are not supposed to return other values! */
if (net_ratelimit())
Expand Down

0 comments on commit 34ea432

Please sign in to comment.