diff options
author | David Marchand <david.marchand@redhat.com> | 2021-10-15 16:30:56 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2021-11-16 14:47:18 +0100 |
commit | bd0fec42a28b10e39684430aa702429fcffc90e2 (patch) | |
tree | 677aae208ce4d309c6de88c4ababf4aac073600d /lib/lacp.h | |
parent | 71eb2ec446b4f25eec2360f65e018162c072973c (diff) | |
download | openvswitch-bd0fec42a28b10e39684430aa702429fcffc90e2.tar.gz |
ofproto/bond: Improve admissibility debug readability.
The admissibility check currently log a message like (line wrapped in
this commitlog):
bond(revalidator11)|DBG|member (dpdk0): Admissibility
verdict is to drop pkt as different port is learned.active member: false,
may_enable: true enable: true LACP status:2
Fix spaces around the period character and separate debug infos with
commas.
Prefix all log messages in this check with bond and member names.
Display a human readable string for LACP status.
New logs look like:
bond(revalidator11)|DBG|bond dpdkbond0: member dpdk0: admissibility
verdict is to drop pkt as different port is learned, active member: false,
may_enable: true, enabled: true, LACP status: off
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/lacp.h')
-rw-r--r-- | lib/lacp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lacp.h b/lib/lacp.h index 908ec201c..1ca06f762 100644 --- a/lib/lacp.h +++ b/lib/lacp.h @@ -49,6 +49,7 @@ bool lacp_is_active(const struct lacp *); bool lacp_process_packet(struct lacp *, const void *member, const struct dp_packet *packet); enum lacp_status lacp_status(const struct lacp *); +const char *lacp_status_description(enum lacp_status); struct lacp_member_settings { char *name; /* Name (for debugging). */ |