automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw47310 [RFC, 05/14] net: add rte prefix to ether defines
       [not found] <20181024081833.21432-6-olivier.matz@6wind.com>
@ 2018-10-24  9:13 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-10-24  9:13 UTC (permalink / raw)
  To: test-report; +Cc: Olivier Matz

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

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#921: FILE: drivers/net/atlantic/atl_ethdev.c:1262:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#921: FILE: drivers/net/atlantic/atl_ethdev.c:1262:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'new_mtu < RTE_ETHER_MIN_MTU'
#1981: FILE: drivers/net/cxgbe/cxgbe_ethdev.c:284:
+	if ((new_mtu < RTE_ETHER_MIN_MTU) || (new_mtu > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'new_mtu > dev_info.max_rx_pktlen'
#1981: FILE: drivers/net/cxgbe/cxgbe_ethdev.c:284:
+	if ((new_mtu < RTE_ETHER_MIN_MTU) || (new_mtu > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'm->pkt_len > RTE_ETHER_MAX_LEN'
#2223: FILE: drivers/net/cxgbe/sge.c:1147:
+	if (!((m->ol_flags & PKT_TX_TCP_SEG) || (m->pkt_len > RTE_ETHER_MAX_LEN))) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#2345: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:1030:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > DPAA2_MAX_RX_PKT_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > DPAA2_MAX_RX_PKT_LEN'
#2345: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:1030:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > DPAA2_MAX_RX_PKT_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#2453: FILE: drivers/net/e1000/em_ethdev.c:1781:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#2453: FILE: drivers/net/e1000/em_ethdev.c:1781:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:SPACING: No space is necessary after a cast
#2488: FILE: drivers/net/e1000/em_rxtx.c:1016:
+					(uint16_t) (data_len - RTE_ETHER_CRC_LEN);

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#2660: FILE: drivers/net/e1000/igb_ethdev.c:4465:
+	if ((mtu < RTE_ETHER_MIN_MTU) ||
 	    (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#2660: FILE: drivers/net/e1000/igb_ethdev.c:4465:
+	if ((mtu < RTE_ETHER_MIN_MTU) ||
 	    (frame_size > dev_info.max_rx_pktlen))

WARNING:LONG_LINE: line over 90 characters
#2748: FILE: drivers/net/e1000/igb_pf.c:406:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'max_frame < RTE_ETHER_MIN_LEN'
#2748: FILE: drivers/net/e1000/igb_pf.c:406:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN'
#2748: FILE: drivers/net/e1000/igb_pf.c:406:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:SPACING: No space is necessary after a cast
#2774: FILE: drivers/net/e1000/igb_rxtx.c:1156:
+					(uint16_t) (data_len - RTE_ETHER_CRC_LEN);

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#3137: FILE: drivers/net/i40e/i40e_ethdev.c:11895:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > I40E_FRAME_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > I40E_FRAME_SIZE_MAX'
#3137: FILE: drivers/net/i40e/i40e_ethdev.c:11895:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > I40E_FRAME_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#3215: FILE: drivers/net/i40e/i40e_ethdev_vf.c:2614:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > I40E_FRAME_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > I40E_FRAME_SIZE_MAX'
#3215: FILE: drivers/net/i40e/i40e_ethdev_vf.c:2614:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > I40E_FRAME_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#3610: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:4923:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#3610: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:4923:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#3634: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:6312:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN'
#3634: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:6312:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

WARNING:LONG_LINE: line over 90 characters
#3776: FILE: drivers/net/ixgbe/ixgbe_pf.c:565:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'max_frame < RTE_ETHER_MIN_LEN'
#3776: FILE: drivers/net/ixgbe/ixgbe_pf.c:565:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN'
#3776: FILE: drivers/net/ixgbe/ixgbe_pf.c:565:
+	if ((max_frame < RTE_ETHER_MIN_LEN) || (max_frame > RTE_ETHER_MAX_JUMBO_FRAME_LEN))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vlan > RTE_ETHER_MAX_VLAN_ID'
#3838: FILE: drivers/net/ixgbe/rte_pmd_ixgbe.c:479:
+	if ((vlan > RTE_ETHER_MAX_VLAN_ID) || (vf_mask == 0))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vf_mask == 0'
#3838: FILE: drivers/net/ixgbe/rte_pmd_ixgbe.c:479:
+	if ((vlan > RTE_ETHER_MAX_VLAN_ID) || (vf_mask == 0))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#3860: FILE: drivers/net/liquidio/lio_ethdev.c:447:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (mtu > pf_mtu)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu > pf_mtu'
#3860: FILE: drivers/net/liquidio/lio_ethdev.c:447:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (mtu > pf_mtu)) {

WARNING:FUNCTION_ARGUMENTS: function definition argument 'uint8_t' should also have an identifier name
#3938: FILE: drivers/net/mlx4/mlx4.h:118:
+int mlx4_get_mac(struct priv *priv, uint8_t (*mac)[RTE_ETHER_ADDR_LEN]);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#3986: FILE: drivers/net/mlx4/mlx4_flow.c:255:
+	for (i = 0; i < RTE_ETHER_ADDR_LEN; ++i) {
 		eth->val.dst_mac[i] &= eth->mask.dst_mac[i];
 	}

WARNING:FUNCTION_ARGUMENTS: function definition argument 'uint8_t' should also have an identifier name
#4025: FILE: drivers/net/mlx5/mlx5.h:286:
+int mlx5_get_mac(struct rte_eth_dev *dev, uint8_t (*mac)[RTE_ETHER_ADDR_LEN]);

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#4508: FILE: drivers/net/nfp/nfp_net.c:1425:
+	if ((mtu < RTE_ETHER_MIN_MTU) || ((uint32_t)mtu > hw->max_mtu))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mtu < RTE_ETHER_MIN_MTU'
#4746: FILE: drivers/net/qede/qede_ethdev.c:2234:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'frame_size > dev_info.max_rx_pktlen'
#4746: FILE: drivers/net/qede/qede_ethdev.c:2234:
+	if ((mtu < RTE_ETHER_MIN_MTU) || (frame_size > dev_info.max_rx_pktlen)) {

WARNING:LONG_LINE: line over 90 characters
#5377: FILE: drivers/net/virtio/virtio_ethdev.c:1659:
+	eth_dev->data->mac_addrs = rte_zmalloc("virtio", VIRTIO_MAX_MAC_ADDRS * RTE_ETHER_ADDR_LEN, 0);

WARNING:LONG_LINE_COMMENT: line over 90 characters
#6213: FILE: examples/performance-thread/l3fwd-thread/main.c:2978:
+				/* if no max-pkt-len set, use the default value RTE_ETHER_MAX_LEN */

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#6522: FILE: lib/librte_ethdev/rte_ethdev.c:1133:
+				(unsigned)RTE_ETHER_MIN_LEN);

WARNING:LONG_LINE: line over 90 characters
#7433: FILE: test/test/test_link_bonding.c:3989:
+					(struct rte_ether_addr *)dst_mac_0, RTE_ETHER_TYPE_IPv4, 0, 0);

WARNING:LONG_LINE: line over 90 characters
#7438: FILE: test/test/test_link_bonding.c:3993:
+					(struct rte_ether_addr *)dst_mac_0, RTE_ETHER_TYPE_IPv4, 0, 0);

WARNING:LONG_LINE: line over 90 characters
#7564: FILE: test/test/test_link_bonding.c:4767:
+			if (vlan_pkt->eth_proto != rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN)) {

total: 0 errors, 11 warnings, 6100 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-24  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20181024081833.21432-6-olivier.matz@6wind.com>
2018-10-24  9:13 ` [dpdk-test-report] |WARNING| pw47310 [RFC, 05/14] net: add rte prefix to ether defines checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).