projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd89cd
)
odp-util: Parse recirc action in parse_odp_action()
author
Daniele Di Proietto
<ddiproietto@vmware.com>
Fri, 3 Oct 2014 22:04:15 +0000
(15:04 -0700)
committer
Jarno Rajahalme
<jrajahalme@nicira.com>
Fri, 3 Oct 2014 22:04:15 +0000
(15:04 -0700)
This may be useful for debugging (with dpctl)
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/odp-util.c
patch
|
blob
|
history
diff --git
a/lib/odp-util.c
b/lib/odp-util.c
index
77e6ec5
..
b9e1e21
100644
(file)
--- a/
lib/odp-util.c
+++ b/
lib/odp-util.c
@@
-765,6
+765,16
@@
parse_odp_action(const char *s, const struct simap *port_names,
}
}
+ {
+ uint32_t recirc_id;
+ int n = -1;
+
+ if (ovs_scan(s, "recirc(%"PRIu32")%n", &recirc_id, &n)) {
+ nl_msg_put_u32(actions, OVS_ACTION_ATTR_RECIRC, recirc_id);
+ return n;
+ }
+ }
+
if (!strncmp(s, "userspace(", 10)) {
return parse_odp_userspace_action(s, actions);
}