[ovs-dev] [PATCH 00/11] Conntrack debugging appctl/dpctl

Daniele Di Proietto diproiettod at vmware.com
Wed Nov 4 00:38:10 UTC 2015


The goal of this series is to introduce two dpctl command to interact
with the Linux kernel connection tracker.  The same infrastructure
will be used by the userspace connection tracker.

First, it defines some structures and some formatting routines (ct-dpif).

Then, it adds some code to transform the netlink conntrack format
into the OVS specific structure (netlink-conntrack)

Some function pointers are added into dpif-provider to implement conntrack
flushing and dumping.

dpif-netlink implements the new dpif-provider interface using
netlink-conntrack.

New functions are added in ct-dpif to implement dumping and flushing.

The dpctl commands are finally added to the dpctl module, and they're
used by the system testsuite.

Finally, a test module (test-netlink-conntrack) is added to allow the use
of the netlink-conntrack API without a datapath.

Daniele Di Proietto (11):
  ct-dpif: New module.
  netlink-conntrack: New module.
  ct-dpif: Add ct_dpif_dump_{start,next,done}().
  ct-dpif: Add ct_dpif_flush().
  dpif-netlink: Implement ct_dump_{start,next,done}.
  dpctl: Add 'conntrack-dump' command.
  dpif-netlink: Implement ct_flush.
  dpctl: Add new 'flush-conntrack' command.
  ovs-test: Add test-netlink-conntrack command.
  system-traffic: use `dpctl/*conntrack` instead of `conntrack` tool.
  system-kmod-macros: Do not require the 'conntrack' tool.

 lib/automake.mk                |   4 +
 lib/ct-dpif.c                  | 415 +++++++++++++++++++++
 lib/ct-dpif.h                  | 185 ++++++++++
 lib/dpctl.c                    |  75 ++++
 lib/dpctl.man                  |  30 ++
 lib/dpif-netdev.c              |   4 +
 lib/dpif-netlink.c             |  66 ++++
 lib/dpif-provider.h            |  29 ++
 lib/netlink-conntrack.c        | 821 +++++++++++++++++++++++++++++++++++++++++
 lib/netlink-conntrack.h        |  61 +++
 tests/atlocal.in               |   7 -
 tests/automake.mk              |   5 +
 tests/system-common-macros.at  |  10 +-
 tests/system-kmod-macros.at    |   5 +-
 tests/system-traffic.at        | 110 +++---
 tests/test-netlink-conntrack.c | 175 +++++++++
 16 files changed, 1931 insertions(+), 71 deletions(-)
 create mode 100644 lib/ct-dpif.c
 create mode 100644 lib/ct-dpif.h
 create mode 100644 lib/netlink-conntrack.c
 create mode 100644 lib/netlink-conntrack.h
 create mode 100644 tests/test-netlink-conntrack.c

-- 
2.1.4




More information about the dev mailing list