This is an addition to testpmd that will allow to simulate a noisy neighbour VNF. It was previously discussed here: http://dpdk.org/ml/archives/dev/2017-October/080763.html
It was not thoroughly tested and doesn't implement all features yet. I'm sending this only for early feedback about how to approach this. Currently I've implmented the logic to buffer incoming packets and flush the queue after a timeout has expired. The logic resides in the iofwd code as an example. I think it needs to be in the forwarding mode logic as packets are send and received from there. To avoid code duplication some of it could be extracted into new helpers and changes to the individual forward mode code kept minimal. What is missing is actual functionality to simulate route lookups (by doing random r/w memory accesses) and to simulate packet processing. I'm working on this, but would like to get feedback on what I have so far. regards, Jens Jens Freimann (1): testpmd: add parameters buffersize-before-send and flush-timeout app/test-pmd/Makefile | 4 ++++ app/test-pmd/fifo.c | 16 +++++++++++++ app/test-pmd/iofwd.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++- app/test-pmd/parameters.c | 21 ++++++++++++++++- app/test-pmd/testpmd.c | 48 ++++++++++++++++++++++++++++++++++++++ app/test-pmd/testpmd.h | 15 ++++++++++++ config/common_base | 1 + 7 files changed, 162 insertions(+), 2 deletions(-) create mode 100644 app/test-pmd/fifo.c -- 2.14.3