[ovs-dev] [PATCH 00/10] PMD Testsuite.

Daniele Di Proietto diproiettod at vmware.com
Thu Mar 17 00:53:48 UTC 2016


Hi Ilya,

thanks for the series, I think it's going to ease development of
dpif-netdev a lot.

I have been thinking about doing the same for a while and I've also
sketched out some code, which is very similar to this :-) (I've merged
the first patch).

The interesting thing about this tests for me is that we get coverage
for the code that handles pmd threads and rxqs in dpif-netdev. I'm
talking about the tests in the last patch, to be clear.

I'm still not 100% convinced that we need to introduce another target
(check-pmd) and rerun most of the testsuite for these reasons:

* Most of the code and the branches stressed by 'make check-pmd' are
  already tested in 'make check'.  To have coverage for the pmd specific
  conditions in dpif-netdev and ofproto-dpif we still need to write
  special testcases (e.g. imagine a testcase to cover the bug fixed by
  e4e74c3a2b9a)
* The 'make check' test suite is run by developers for most of their
  changes.  If we add tests there we make sure that nobody will break
  the pmd code when changing something.

What do you think?  Is there a particular reason why you chose to
add another test suite?

Thanks,

Daniele

On 14/03/2016 08:18, "Ilya Maximets" <i.maximets at samsung.com> wrote:

>New 'dummy_pmd' class created in purposes of testing of PMD interfaces.
>Added new target 'make check-pmd' and a bunch of PMD specific tests.
>
>Ilya Maximets (10):
>  netdev: New field 'is_pmd' in netdev_class.
>  dummy: Add dummy_pmd class.
>  dpctl: Implement dpctl/flow-get for dpif-netdev.
>  ofproto-dpif.at: Ignore port type while checking result of
>    dpctl/dump-flows.
>  ofproto-dpif.at: Allow output from all threads in 'patch ports -
>    stack'.
>  automake.mk: New target 'check-pmd'.
>  netdev-dummy: Queue packets only to one rx queue.
>  testsuite: Filter out unnecessary info about queues for dummy ports.
>  netdev-dummy: Add fake multiqueue support to dummy_pmd.
>  testsuite-pmd: Add PMD specific tests.
>
> NEWS                      |   1 +
> lib/dpctl.c               |   3 +-
> lib/dpif-netdev.c         |  49 ++++++++---
> lib/dummy.c               |  34 ++++---
> lib/dummy.h               |   8 +-
> lib/netdev-bsd.c          |   1 +
> lib/netdev-dpdk.c         |   1 +
> lib/netdev-dummy.c        | 220
>++++++++++++++++++++++++++++------------------
> lib/netdev-linux.c        |   1 +
> lib/netdev-provider.h     |   3 +
> lib/netdev-vport.c        |  20 +++--
> lib/netdev-windows.c      |   1 +
> lib/netdev.c              |   5 +-
> tests/automake.mk         |  18 +++-
> tests/bridge.at           |   6 +-
> tests/completion.at       |   3 +-
> tests/dpctl.at            |   8 +-
> tests/dummy-macros.at     |   8 ++
> tests/dummy-pmd-macros.at |   8 ++
> tests/mpls-xlate.at       |   2 +-
> tests/ofproto-dpif.at     |  42 ++++-----
> tests/ofproto-macros.at   |  12 +--
> tests/ovs-ofctl.at        |   2 +-
> tests/ovs-vswitchd.at     |   2 +-
> tests/pmd.at              | 199 +++++++++++++++++++++++++++++++++++++++++
> tests/testsuite-pmd.at    |  47 ++++++++++
> tests/testsuite.at        |   1 +
> tests/tunnel-push-pop.at  |   2 +-
> tests/tunnel.at           |  28 +++---
> 29 files changed, 552 insertions(+), 183 deletions(-)
> create mode 100644 tests/dummy-macros.at
> create mode 100644 tests/dummy-pmd-macros.at
> create mode 100644 tests/pmd.at
> create mode 100644 tests/testsuite-pmd.at
>
>-- 
>2.5.0
>




More information about the dev mailing list