trafgen: fix bug in packet scheduling
commit08c2dc1fcb403519a86a1129ad27c3188294e18f
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 22 Mar 2013 11:29:19 +0000 (22 12:29 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Fri, 22 Mar 2013 11:29:19 +0000 (22 12:29 +0100)
tree39885c89ebf328b8e40162f93b1b5263cc12101f
parent540ae1ee3b2456355fc9c36410667e1b5019e314
trafgen: fix bug in packet scheduling

When having a config like cpu(1): {...}, and one runs it with -n1, trafgen
behaves buggy, I also noted that in other situations. Fix this by letting
the loop also return on CPU state RES, and do not perform this stupid magic
in the main routine. So far it seems to work now after some basic tests I
did.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen.c