mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
odp-util: Parse recirc action in parse_odp_action()
This may be useful for debugging (with dpctl) Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
committed by
Jarno Rajahalme
parent
8bd89cdc06
commit
d73803ca82
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user