misc: add "maxframe" and "rate" to packet-generator cli. 57/22357/4
authorChristian E. Hopps <chopps@chopps.org>
Fri, 27 Sep 2019 16:59:30 +0000 (12:59 -0400)
committerDave Barach <openvpp@barachs.net>
Thu, 3 Oct 2019 16:54:28 +0000 (16:54 +0000)
commit87d7bac5cf2ebdc7820e1edaadc2cc3b6d111cf2
treeeafd0c6385923294367a0db2a565cb1b9a18ae32
parent4ec6f6bc7788f3c356a022ea5fd019ca4e815747
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 <chopps@chopps.org>
Change-Id: Ie362bbb110b2cf01d9f65c559bbe9101e17b7fdc
Signed-off-by: Christian Hopps <chopps@labn.net>
src/vnet/pg/cli.c
src/vnet/pg/input.c
src/vnet/pg/pg.h