* [dpdk-test-report] |WARNING| pw49404 net/softnic: add support for service cores
[not found] <20190103160432.147027-1-cristian.dumitrescu@intel.com>
@ 2019-01-03 16:05 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-01-03 16:05 UTC (permalink / raw)
To: test-report; +Cc: Cristian Dumitrescu
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/49404
_coding style issues_
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline->enabled'
#160: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:118:
+ if ((pipeline->enabled) && (pipeline->thread_id == thread_id))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'pipeline->thread_id == thread_id'
#160: FILE: drivers/net/softnic/rte_eth_softnic_pipeline.c:118:
+ if ((pipeline->enabled) && (pipeline->thread_id == thread_id))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'thread_id >= RTE_MAX_LCORE'
#209: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:105:
+ if ((thread_id >= RTE_MAX_LCORE) ||
+ (thread_id == cfg->master_lcore))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'thread_id == cfg->master_lcore'
#209: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:105:
+ if ((thread_id >= RTE_MAX_LCORE) ||
+ (thread_id == cfg->master_lcore))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'role == ROLE_SERVICE'
#215: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:111:
+ if ((softnic->params.sc && (role == ROLE_SERVICE)) ||
+ (!softnic->params.sc && (role == ROLE_RTE)))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'role == ROLE_RTE'
#215: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:111:
+ if ((softnic->params.sc && (role == ROLE_SERVICE)) ||
+ (!softnic->params.sc && (role == ROLE_RTE)))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p == NULL'
#312: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:296:
+ if (!thread_is_valid(softnic, thread_id) ||
(p == NULL) ||
(p->n_ports_in == 0) ||
(p->n_ports_out == 0) ||
+ (p->n_tables == 0) ||
+ p->enabled)
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->n_ports_in == 0'
#312: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:296:
+ if (!thread_is_valid(softnic, thread_id) ||
(p == NULL) ||
(p->n_ports_in == 0) ||
(p->n_ports_out == 0) ||
+ (p->n_tables == 0) ||
+ p->enabled)
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->n_ports_out == 0'
#312: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:296:
+ if (!thread_is_valid(softnic, thread_id) ||
(p == NULL) ||
(p->n_ports_in == 0) ||
(p->n_ports_out == 0) ||
+ (p->n_tables == 0) ||
+ p->enabled)
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->n_tables == 0'
#312: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:296:
+ if (!thread_is_valid(softnic, thread_id) ||
(p == NULL) ||
(p->n_ports_in == 0) ||
(p->n_ports_out == 0) ||
+ (p->n_tables == 0) ||
+ p->enabled)
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_pipelines == 0'
#328: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:308:
+ if (softnic->params.sc && (n_pipelines == 0)) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p == NULL'
#361: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:390:
+ if (!thread_is_valid(softnic, thread_id) ||
+ (p == NULL) ||
+ (p->enabled && (p->thread_id != thread_id)))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->thread_id != thread_id'
#361: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:390:
+ if (!thread_is_valid(softnic, thread_id) ||
+ (p == NULL) ||
+ (p->enabled && (p->thread_id != thread_id)))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'td->n_pipelines == 0'
#379: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:427:
+ if (softnic->params.sc && (td->n_pipelines == 0))
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'n_pipelines == 0'
#390: FILE: drivers/net/softnic/rte_eth_softnic_thread.c:460:
+ if (softnic->params.sc && (n_pipelines == 0))
total: 0 errors, 0 warnings, 15 checks, 329 lines checked
^ permalink raw reply [flat|nested] only message in thread