Browse Source

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 <bogdan.hamciuc@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Bogdan Hamciuc 10 years ago
parent
commit
1ce4b2f44d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      net/core/pktgen.c

+ 0 - 2
net/core/pktgen.c

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