misc: add "maxframe" and "rate" to packet-generator cli. 01/22701/2
authorChristian E. Hopps <[email protected]>
Fri, 27 Sep 2019 16:59:30 +0000 (12:59 -0400)
committerAndrew Yourtchenko <[email protected]>
Wed, 16 Oct 2019 12:40:14 +0000 (12:40 +0000)
commitfb76b4549f2ac529b82bdbbaee0786857386a2a7
tree57285486a378a0a377fe97c00a78f77bbf66774a
parent8a7109cc6e61f9ed4677bf114466ba14e82dee71
misc: add "maxframe" and "rate" to packet-generator cli.

Allow for setting the maximum number of generated packets to be included
in the frame passed to next nodes. This is very important for testing
code which may be susceptible to multi-frame vs single-frame bugs (e.g.,
code that is doing re-ordering where packets may be buffered between
frames).

Update:
- remove redundant packet "rate" option.
- reduce n_max_frame to u32 as that's what pulled from the CLI.

Type: feature
Signed-off-by: Christian E. Hopps <[email protected]>
Change-Id: Ie362bbb110b2cf01d9f65c559bbe9101e17b7fdc
Signed-off-by: Christian Hopps <[email protected]>
(cherry picked from commit 87d7bac5cf2ebdc7820e1edaadc2cc3b6d111cf2)
src/vnet/pg/cli.c
src/vnet/pg/input.c
src/vnet/pg/pg.h