mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
odp-util: Use port names in output in more places.
Until now, ODP output only showed port names for in_port matches. This commit shows them in other places port numbers appear. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Jan Scheurich <jan.scheurich@ericsson.com> Tested-by: Jan Scheurich <jan.scheurich@ericsson.com>
This commit is contained in:
@@ -78,7 +78,7 @@ const char *slow_path_reason_to_explanation(enum slow_path_reason);
|
||||
#define ODPP_NONE ODP_PORT_C(UINT32_MAX)
|
||||
|
||||
void format_odp_actions(struct ds *, const struct nlattr *odp_actions,
|
||||
size_t actions_len);
|
||||
size_t actions_len, const struct hmap *portno_names);
|
||||
int odp_actions_from_string(const char *, const struct simap *port_names,
|
||||
struct ofpbuf *odp_actions);
|
||||
|
||||
@@ -92,6 +92,9 @@ struct odp_portno_names {
|
||||
void odp_portno_names_set(struct hmap *portno_names, odp_port_t port_no,
|
||||
char *port_name);
|
||||
void odp_portno_names_destroy(struct hmap *portno_names);
|
||||
void odp_portno_name_format(const struct hmap *portno_names,
|
||||
odp_port_t, struct ds *);
|
||||
|
||||
/* The maximum number of bytes that odp_flow_key_from_flow() appends to a
|
||||
* buffer. This is the upper bound on the length of a nlattr-formatted flow
|
||||
* key that ovs-vswitchd fully understands.
|
||||
|
Reference in New Issue
Block a user