[ovs-dev] [netlink flows v2 00/12] make kernel flows use netlink attributes

Ben Pfaff blp at nicira.com
Tue Dec 28 22:32:55 UTC 2010


This is a revision of the series based on your comments.  I've also
added a number of trivial commits at the beginning to fix up various
stuff I noticed along the way.

I'm working on extending this series with additional steps toward
using Netlink as the kernel-user communication protocol.  I'll send
those out as they become ready.

Thanks,

Ben.

Ben Pfaff (12):
  ofproto: Use shash instead of svec for uniquifying, in
    reinit_ports().
  ovs-dpctl: Reimplement get_port_number() using
    dpif_port_query_by_name().
  datapath: Fix 32-bit truncation of argument to ODPAT_OUTPUT_CONTROL.
  datapath: Remove ODPP_NORMAL macro.
  dpif-netdev: Add missing 'const' qualifiers to function parameters.
  ofpbuf: New function ofpbuf_use_stack().
  ofpbuf: Enable ofpbuf_push() to expand headroom.
  ofpbuf: New function ofpbuf_clone_data_with_headroom().
  hmap: New function hmap_at_position().
  datapath: Change listing flows to use an iterator concept.
  datapath: Convert odp_flow_key to use Netlink attributes instead.
  datapath: Report kernel's flow key when passing packets up to
    userspace.

 datapath/actions.c                                 |   80 ++--
 datapath/actions.h                                 |    4 +-
 datapath/datapath.c                                |  437 +++++++++-----------
 datapath/datapath.h                                |   20 +-
 datapath/flow.c                                    |  297 ++++++++++++-
 datapath/flow.h                                    |   30 ++-
 .../linux-2.6/compat-2.6/include/net/netlink.h     |   47 ++
 datapath/odp-compat.h                              |   10 +-
 datapath/table.c                                   |   47 ++
 datapath/table.h                                   |    1 +
 datapath/tunnel.c                                  |    2 +-
 include/openvswitch/datapath-protocol.h            |  174 +++++----
 lib/dpif-linux.c                                   |  103 ++++-
 lib/dpif-netdev.c                                  |  214 +++++++---
 lib/dpif-provider.h                                |   57 ++-
 lib/dpif.c                                         |  218 +++++-----
 lib/dpif.h                                         |   45 ++-
 lib/flow.c                                         |    6 +-
 lib/flow.h                                         |    4 +
 lib/hmap.c                                         |   43 ++
 lib/hmap.h                                         |    3 +
 lib/nx-match.c                                     |    7 +-
 lib/odp-util.c                                     |  454 +++++++++++++++++---
 lib/odp-util.h                                     |   28 +-
 lib/ofp-util.c                                     |   25 +-
 lib/ofp-util.h                                     |    4 +
 lib/ofpbuf.c                                       |  180 ++++++--
 lib/ofpbuf.h                                       |   18 +-
 lib/packets.h                                      |    4 +
 ofproto/ofproto-sflow.c                            |   47 +--
 ofproto/ofproto-sflow.h                            |    6 +-
 ofproto/ofproto.c                                  |  363 ++++++++--------
 utilities/ovs-dpctl.c                              |   54 ++--
 33 files changed, 2084 insertions(+), 948 deletions(-)





More information about the dev mailing list