net/enic: fix filter log message
authorHyong Youb Kim <hyonkim@cisco.com>
Fri, 5 Feb 2021 01:35:03 +0000 (17:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Feb 2021 10:28:48 +0000 (11:28 +0100)
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 <hhaim@cisco.com>
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_flow.c

index 7eb06f8..cdfdc90 100644 (file)
@@ -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)");