Merge tag 'platform-drivers-x86-v6.6-6' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / net / core / pktgen.c
index f56b8d6..4d16966 100644 (file)
@@ -669,19 +669,19 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
        seq_puts(seq, "     Flags: ");
 
        for (i = 0; i < NR_PKT_FLAGS; i++) {
-               if (i == F_FLOW_SEQ)
+               if (i == FLOW_SEQ_SHIFT)
                        if (!pkt_dev->cflows)
                                continue;
 
-               if (pkt_dev->flags & (1 << i))
+               if (pkt_dev->flags & (1 << i)) {
                        seq_printf(seq, "%s  ", pkt_flag_names[i]);
-               else if (i == F_FLOW_SEQ)
-                       seq_puts(seq, "FLOW_RND  ");
-
 #ifdef CONFIG_XFRM
-               if (i == F_IPSEC && pkt_dev->spi)
-                       seq_printf(seq, "spi:%u", pkt_dev->spi);
+                       if (i == IPSEC_SHIFT && pkt_dev->spi)
+                               seq_printf(seq, "spi:%u  ", pkt_dev->spi);
 #endif
+               } else if (i == FLOW_SEQ_SHIFT) {
+                       seq_puts(seq, "FLOW_RND  ");
+               }
        }
 
        seq_puts(seq, "\n");