[dpdk-test-report] |WARNING| pw56372 [PATCH 06/15] net/bnxt: correctly set L4 checksum error for tunnel and non-tunnel packets

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jul 12 08:08:16 CEST 2019


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/56372

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'flags2_f' - possible side-effects?
#122: FILE: drivers/net/bnxt/bnxt_rxr.h:35:
+#define IS_IP_NONTUNNEL_PKT(flags2_f)	\
+	(	\
+	 ((flags2_f) == \
+	  (rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_IP_CS_CALC))) ||	\
+	 ((flags2_f) ==	\
+	  (rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_IP_CS_CALC | \
+			    RX_PKT_CMPL_FLAGS2_L4_CS_CALC))) \
+	)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'flags2_f' - possible side-effects?
#204: FILE: drivers/net/bnxt/bnxt_rxr.h:107:
+#define IS_L4_TUNNEL_PKT(flags2_f)	\
+	(	\
+		IS_L4_TUNNEL_PKT_INNER_OUTER_L4_CS(flags2_f) || \
+		IS_L4_TUNNEL_PKT_ONLY_INNER_L4_CS(flags2_f)	\
+	)

total: 0 errors, 0 warnings, 2 checks, 194 lines checked


More information about the test-report mailing list