2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-02 07:15:17 +00:00

odp-util: Add support for named ports to odp_flow_key_from_string().

Really the "trace" command should support this but in fact I need it for
an upcoming update to a test.
This commit is contained in:
Ben Pfaff
2011-10-26 10:01:32 -07:00
parent 39db78a0fb
commit b2a60db8e4
4 changed files with 32 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ struct ds;
struct flow;
struct nlattr;
struct ofpbuf;
struct shash;
#define OVSP_NONE ((uint16_t) -1)
@@ -88,7 +89,8 @@ struct odputil_keybuf {
};
void odp_flow_key_format(const struct nlattr *, size_t, struct ds *);
int odp_flow_key_from_string(const char *s, struct ofpbuf *);
int odp_flow_key_from_string(const char *s, const struct shash *port_names,
struct ofpbuf *);
void odp_flow_key_from_flow(struct ofpbuf *, const struct flow *);
int odp_flow_key_to_flow(const struct nlattr *, size_t, struct flow *);