Skip to content

Commit 1ce4b2f

Browse files
Bogdan Hamciucdavem330
authored andcommitted
net: pktgen: Remove unused 'allocated_skbs' field
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]>
1 parent 879c722 commit 1ce4b2f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/core/pktgen.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ struct pktgen_dev {
273273

274274
/* runtime counters relating to clone_skb */
275275

276-
__u64 allocated_skbs;
277276
__u32 clone_count;
278277
int last_ok; /* Was last skb sent?
279278
* Or a failed transmit of some sort?
@@ -3398,7 +3397,6 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
33983397
return;
33993398
}
34003399
pkt_dev->last_pkt_size = pkt_dev->skb->len;
3401-
pkt_dev->allocated_skbs++;
34023400
pkt_dev->clone_count = 0; /* reset counter */
34033401
}
34043402

0 commit comments

Comments
 (0)