datapath: Convert odp_flow_key to use Netlink attributes instead.
authorBen Pfaff <blp@nicira.com>
Mon, 24 Jan 2011 02:44:44 +0000 (18:44 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:08:35 +0000 (21:08 -0800)
commit36956a7d33c9ee204fcb184484a5aaacbd9ecef8
treef62a4d17e6941697bf59520a2068176d1ea3b904
parent704a1e09e9b31ea39ca41c028c7c6aaf2482283a
datapath: Convert odp_flow_key to use Netlink attributes instead.

One of the goals for Open vSwitch is to decouple kernel and userspace
software, so that either one can be upgraded or rolled back independent of
the other.  To do this in full generality, it must be possible to change
the kernel's idea of the flow key separately from the userspace version.
In turn, that means that flow keys must become variable-length.  This
commit makes that change using Netlink attribute sequences.

This commit does not actually make userspace flexible enough to handle
changes in the kernel flow key structure, because userspace doesn't yet
have enough information to do that intelligently.  Upcoming commits will
fix that.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
21 files changed:
datapath/actions.c
datapath/actions.h
datapath/datapath.c
datapath/flow.c
datapath/flow.h
datapath/linux-2.6/compat-2.6/include/net/netlink.h
datapath/odp-compat.h
datapath/tunnel.c
include/openvswitch/datapath-protocol.h
lib/dpif-netdev.c
lib/dpif.c
lib/flow.c
lib/flow.h
lib/nx-match.c
lib/odp-util.c
lib/odp-util.h
lib/ofp-util.c
lib/ofp-util.h
lib/packets.h
ofproto/ofproto.c
utilities/ovs-dpctl.c