Skip to content

Commit

Permalink
net: pktgen: Remove unused 'allocated_skbs' field
Browse files Browse the repository at this point in the history
Field pktgen_dev.allocated_skbs had been written to, but never read
from. The number of allocated skbs can be deduced anyway, from the total
number of sent packets and the 'clone_skb' param.

Signed-off-by: Bogdan Hamciuc <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Bogdan Hamciuc authored and davem330 committed Jul 30, 2015
1 parent 879c722 commit 1ce4b2f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ struct pktgen_dev {

/* runtime counters relating to clone_skb */

__u64 allocated_skbs;
__u32 clone_count;
int last_ok; /* Was last skb sent?
* Or a failed transmit of some sort?
Expand Down Expand Up @@ -3398,7 +3397,6 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
return;
}
pkt_dev->last_pkt_size = pkt_dev->skb->len;
pkt_dev->allocated_skbs++;
pkt_dev->clone_count = 0; /* reset counter */
}

Expand Down

0 comments on commit 1ce4b2f

Please sign in to comment.