mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
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>
This commit is contained in:
@@ -110,6 +110,10 @@ void ofputil_cls_rule_to_match(const struct cls_rule *, enum nx_flow_format,
|
||||
void normalize_match(struct ofp_match *);
|
||||
char *ofp_match_to_literal_string(const struct ofp_match *match);
|
||||
|
||||
/* dl_type translation between OpenFlow and 'struct flow' format. */
|
||||
ovs_be16 ofputil_dl_type_to_openflow(ovs_be16 flow_dl_type);
|
||||
ovs_be16 ofputil_dl_type_from_openflow(ovs_be16 ofp_dl_type);
|
||||
|
||||
/* Flow formats. */
|
||||
bool ofputil_flow_format_is_valid(enum nx_flow_format);
|
||||
const char *ofputil_flow_format_to_string(enum nx_flow_format);
|
||||
|
Reference in New Issue
Block a user