DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jens Freimann <jfreimann@redhat.com>
To: dev@dpdk.org
Cc: ailan@redhat.com, jan.scheurich@ericsson.com,
	vkaplans@redhat.com, bruce.richardson@intel.com,
	thomas@monjalon.net
Subject: [dpdk-dev] [RFC 0/1] testpmd: simulating noisy host environment
Date: Fri, 23 Mar 2018 16:35:05 +0100	[thread overview]
Message-ID: <20180323153506.28316-1-jfreimann@redhat.com> (raw)

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

             reply	other threads:[~2018-03-23 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-23 15:35 Jens Freimann [this message]
2018-03-23 15:35 ` [dpdk-dev] [PATCH 1/1] testpmd: add parameters buffersize-before-send and flush-timeout Jens Freimann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180323153506.28316-1-jfreimann@redhat.com \
    --to=jfreimann@redhat.com \
    --cc=ailan@redhat.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=jan.scheurich@ericsson.com \
    --cc=thomas@monjalon.net \
    --cc=vkaplans@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).