pktgen: tx_bytes might be slightly wrong
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 6 Nov 2009 05:04:32 +0000 (21:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 06:34:27 +0000 (22:34 -0800)
commitbaac8564547ac7f944af1c2e8cc6fdd57f2836a4
tree3e8054248800b2da155dcc039270e7ca75db177c
parentbf8e56bfc4fcfcef9f08e6233dc619706807893a
pktgen: tx_bytes might be slightly wrong

cur_pkt_size can be changed in proc fs while pktgen is running,
we better use a private field to get precise tx-bytes counter.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c