[dpdk-test-report] |WARNING| pw25025 [PATCH v2 08/11] net/e1000: parse flex filter

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jun 2 08:46:16 CEST 2017


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#32: FILE: drivers/net/e1000/e1000_ethdev.h:153:
+#define MAC_TYPE_FILTER_SUP_EXT(type)    do {\
+	if ((type) != e1000_82580 && (type) != e1000_i350 &&\
+		(type) != e1000_i210 && (type) != e1000_i211)\
+		return -ENOSYS; \
+} while (0)

WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else
#35: FILE: drivers/net/e1000/e1000_ethdev.h:156:
+		return -ENOSYS; \

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 24)
#211: FILE: drivers/net/e1000/igb_flow.c:1164:
+	if (item->type != RTE_FLOW_ITEM_TYPE_RAW &&
[...]
+			rte_flow_error_set(error, EINVAL,

total: 0 errors, 3 warnings, 0 checks, 318 lines checked


More information about the test-report mailing list