automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Ophir Munk <ophirmu@mellanox.com>
Subject: [dpdk-test-report] |WARNING| pw32341 [PATCH v1 2/3] net/tap: add eBPF instructions
Date: Sun, 17 Dec 2017 13:23:30 +0100 (CET)	[thread overview]
Message-ID: <20171217122330.693CC2C2B@dpdk.org> (raw)
In-Reply-To: <1513513315-21618-3-git-send-email-ophirmu@mellanox.com>

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

_coding style issues_


WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(cls_q_insns)
#172: FILE: drivers/net/tap/tap_bpf_insns.c:119:
+	(sizeof(cls_q_insns) / sizeof(cls_q_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(tailing_insns)
#217: FILE: drivers/net/tap/tap_bpf_insns.c:164:
+	(sizeof(tailing_insns) / sizeof(tailing_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(hash_appending_insns)
#263: FILE: drivers/net/tap/tap_bpf_insns.c:210:
+	(sizeof(hash_appending_insns) / sizeof(hash_appending_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(queue_setting_insns)
#335: FILE: drivers/net/tap/tap_bpf_insns.c:282:
+	(sizeof(queue_setting_insns) / sizeof(queue_setting_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(l2_src_hash_insns)
#956: FILE: drivers/net/tap/tap_bpf_insns.c:903:
+	(sizeof(l2_src_hash_insns) / sizeof(l2_src_hash_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(l2_dst_hash_insns)
#1563: FILE: drivers/net/tap/tap_bpf_insns.c:1510:
+	(sizeof(l2_dst_hash_insns) / sizeof(l2_dst_hash_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(l3_dst_hash_insns)
#3323: FILE: drivers/net/tap/tap_bpf_insns.c:3270:
+	(sizeof(l3_dst_hash_insns) / sizeof(l3_dst_hash_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(l3_src_hash_insns)
#5072: FILE: drivers/net/tap/tap_bpf_insns.c:5019:
+	(sizeof(l3_src_hash_insns) / sizeof(l3_src_hash_insns[0]))

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(l4_src_hash_insns)
#5414: FILE: drivers/net/tap/tap_bpf_insns.c:5361:
+	(sizeof(l4_src_hash_insns) / sizeof(l4_src_hash_insns[0]))

CHECK:ARCH_DEFINES: architecture specific defines should be avoided
#5436: FILE: drivers/net/tap/tap_bpf_insns.c:5383:
+# if defined(__i386__)

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5619: FILE: drivers/net/tap/tap_bpf_program.c:133:
+		printt("hash(): rss key is not configured
");

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5641: FILE: drivers/net/tap/tap_bpf_program.c:155:
+			printt("hash(%d): hash = %x (off = %d)
",

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5654: FILE: drivers/net/tap/tap_bpf_program.c:168:
+			printt("hash(%d): hash = %x (off = %d)
",

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5677: FILE: drivers/net/tap/tap_bpf_program.c:191:
+				printt("hash(%d): hash = %x (off = %d)
",

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5692: FILE: drivers/net/tap/tap_bpf_program.c:206:
+				printt("hash(%d): hash = %x (off = %d)
",

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5716: FILE: drivers/net/tap/tap_bpf_program.c:230:
+				printt("hash(%d): hash = %x (off = %d)
",

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5731: FILE: drivers/net/tap/tap_bpf_program.c:245:
+				printt("hash(%d): hash = %x (off = %d)
",

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'f == HASH_FIELD_L4_SRC'
#5745: FILE: drivers/net/tap/tap_bpf_program.c:259:
+	if ((ip_proto == IPPROTO_TCP || ip_proto == IPPROTO_UDP) &&
+	    (rsskey->hash_fields & (1 << HASH_FIELD_L4_SRC)) &&
+	    (f == HASH_FIELD_L4_SRC)) {

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'hash', this function's name, in a string
#5754: FILE: drivers/net/tap/tap_bpf_program.c:268:
+		printt("hash(%d): hash = %x (off = %d)
",

total: 0 errors, 17 warnings, 2 checks, 5824 lines checked

           reply	other threads:[~2017-12-17 12:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1513513315-21618-3-git-send-email-ophirmu@mellanox.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171217122330.693CC2C2B@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=ophirmu@mellanox.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).