automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw40835 [PATCH 09/21] net/softnic: add pipeline object
       [not found] <20180608124155.140663-10-jasvinder.singh@intel.com>
@ 2018-06-08 14:19 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-06-08 14:19 UTC (permalink / raw)
  To: test-report; +Cc: Jasvinder Singh

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

_coding style issues_


WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1
#293: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:1:
+/* SPDX-License-Identifier: BSD-3-Clause

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'name == NULL'
#385: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:93:
+	if ((name == NULL) ||
+		pipeline_find(softnic, name) ||
+		(params == NULL) ||
+		(params->timer_period_ms == 0))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params == NULL'
#385: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:93:
+	if ((name == NULL) ||
+		pipeline_find(softnic, name) ||
+		(params == NULL) ||
+		(params->timer_period_ms == 0))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params->timer_period_ms == 0'
#385: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:93:
+	if ((name == NULL) ||
+		pipeline_find(softnic, name) ||
+		(params == NULL) ||
+		(params->timer_period_ms == 0))

CHECK:SPACING: No space is necessary after a cast
#421: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:129:
+	pp.socket_id = (int) softnic->params.cpu_id;

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline_name == NULL'
#485: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:193:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params == NULL'
#485: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:193:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params->burst_size == 0'
#485: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:193:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX'
#485: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:193:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'tap == NULL'
#560: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:268:
+		if ((tap == NULL) || (mempool == NULL))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mempool == NULL'
#560: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:268:
+		if ((tap == NULL) || (mempool == NULL))

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#606: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:314:
+		status = rte_port_in_action_params_get(

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline == NULL'
#650: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:358:
+	if ((pipeline == NULL) ||
+		(port_id >= pipeline->n_ports_in) ||
+		(table_id >= pipeline->n_tables))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'port_id >= pipeline->n_ports_in'
#650: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:358:
+	if ((pipeline == NULL) ||
+		(port_id >= pipeline->n_ports_in) ||
+		(table_id >= pipeline->n_tables))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'table_id >= pipeline->n_tables'
#650: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:358:
+	if ((pipeline == NULL) ||
+		(port_id >= pipeline->n_ports_in) ||
+		(table_id >= pipeline->n_tables))

CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#662: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:370:
+
+}

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline_name == NULL'
#694: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:402:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params == NULL'
#694: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:402:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params->burst_size == 0'
#694: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:402:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX'
#694: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:402:
+	if ((pipeline_name == NULL) ||
+		(params == NULL) ||
+		(params->burst_size == 0) ||
+		(params->burst_size > RTE_PORT_IN_BURST_SIZE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline_name == NULL'
#1005: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:713:
+	if ((pipeline_name == NULL) ||
+		(params == NULL))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'params == NULL'
#1005: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:713:
+	if ((pipeline_name == NULL) ||
+		(params == NULL))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline == NULL'
#1010: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:718:
+	if ((pipeline == NULL) ||
+		(pipeline->n_tables >= RTE_PIPELINE_TABLE_MAX))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline->n_tables >= RTE_PIPELINE_TABLE_MAX'
#1010: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:718:
+	if ((pipeline == NULL) ||
+		(pipeline->n_tables >= RTE_PIPELINE_TABLE_MAX))

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#1211: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:919:
+		status = rte_table_action_table_params_get(

total: 0 errors, 1 warnings, 1208 lines checked

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

only message in thread, other threads:[~2018-06-08 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20180608124155.140663-10-jasvinder.singh@intel.com>
2018-06-08 14:19 ` [dpdk-test-report] |WARNING| pw40835 [PATCH 09/21] net/softnic: add pipeline object 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).