[dpdk-test-report] |WARNING| pw21599 [PATCH v2 1/2] net/ixgbe: move ixgbe 2 mac type check macro

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Mar 8 09:11:25 CET 2017


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#92: FILE: drivers/net/ixgbe/ixgbe_ethdev.h:142:
+#define MAC_TYPE_FILTER_SUP_EXT(type)    do {\
+	if ((type) != ixgbe_mac_82599EB && (type) != ixgbe_mac_X540)\
+		return -ENOTSUP;\
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#97: FILE: drivers/net/ixgbe/ixgbe_ethdev.h:147:
+#define MAC_TYPE_FILTER_SUP(type)    do {\
+	if ((type) != ixgbe_mac_82599EB && (type) != ixgbe_mac_X540 &&\
+		(type) != ixgbe_mac_X550 && (type) != ixgbe_mac_X550EM_x &&\
+		(type) != ixgbe_mac_X550EM_a)\
+		return -ENOTSUP;\
+} while (0)

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


More information about the test-report mailing list