Skip to content

Commit

Permalink
odp-util: Parse recirc action in parse_odp_action()
Browse files Browse the repository at this point in the history
This may be useful for debugging (with dpctl)

Signed-off-by: Daniele Di Proietto <[email protected]>
Acked-by: Jarno Rajahalme <[email protected]>
  • Loading branch information
ddiproietto authored and Jarno Rajahalme committed Oct 3, 2014
1 parent 8bd89cd commit d73803c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/odp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d73803c

Please sign in to comment.