From 89ce72c6ffb4337273bb292dc419511f1d619879 Mon Sep 17 00:00:00 2001 From: Hyong Youb Kim Date: Thu, 4 Feb 2021 17:35:03 -0800 Subject: [PATCH] net/enic: fix filter log message A debug message for filter API is using a wrong flag. Use the correct one. Fixes: 936a9b9975e7 ("net/enic: flow API debug") Cc: stable@dpdk.org Reported-by: Hanoch Haim Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_flow.c b/drivers/net/enic/enic_flow.c index 7eb06f889e..cdfdc904a6 100644 --- a/drivers/net/enic/enic_flow.c +++ b/drivers/net/enic/enic_flow.c @@ -1392,7 +1392,7 @@ enic_dump_filter(const struct filter_v2 *filt) if (gp->mask_flags & FILTER_GENERIC_1_IPV6) sprintf(ip6, "%s ", - (gp->val_flags & FILTER_GENERIC_1_IPV4) + (gp->val_flags & FILTER_GENERIC_1_IPV6) ? "ip6(y)" : "ip6(n)"); else sprintf(ip6, "%s ", "ip6(x)"); -- 2.20.1