From bd0fec42a28b10e39684430aa702429fcffc90e2 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 15 Oct 2021 16:30:56 +0200 Subject: 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 Acked-by: Kevin Traynor Signed-off-by: Ilya Maximets --- lib/lacp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lacp.h') 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). */ -- cgit v1.2.1