mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ovs-dpctl: Add mega flow support
Added support to allow mega flow specified and displayed. ovs-dpctl tool is mainly used as debugging tool. This patch also implements the low level user space routines to send and receive mega flow netlink messages. Those netlink suppor routines are required for forthcoming user space mega flow patches. Added a unit test to test parsing and display of mega flows. Ethan contributed the ovs-dpctl mega flow output function. Co-authored-by: Ethan Jackson <ethan@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Signed-off-by: Andy Zhou <azhou@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -91,9 +91,13 @@ struct odputil_keybuf {
|
||||
enum odp_key_fitness odp_tun_key_from_attr(const struct nlattr *,
|
||||
struct flow_tnl *);
|
||||
|
||||
void odp_flow_format(const struct nlattr *key, size_t key_len,
|
||||
const struct nlattr *mask, size_t mask_len,
|
||||
struct ds *);
|
||||
void odp_flow_key_format(const struct nlattr *, size_t, struct ds *);
|
||||
int odp_flow_key_from_string(const char *s, const struct simap *port_names,
|
||||
struct ofpbuf *);
|
||||
int odp_flow_from_string(const char *s,
|
||||
const struct simap *port_names,
|
||||
struct ofpbuf *, struct ofpbuf *);
|
||||
|
||||
void odp_flow_key_from_flow(struct ofpbuf *, const struct flow *,
|
||||
uint32_t odp_in_port);
|
||||
|
||||
Reference in New Issue
Block a user