* [dpdk-test-report] |WARNING| pw70189 [PATCH] ring: empty and count optimizations
[not found] <20200513153111.37063-1-mb@smartsharesystems.com>
@ 2020-05-13 15:32 ` checkpatch
2020-05-14 0:16 ` [dpdk-test-report] |WARNING| pw70189 " 0-day Robot
1 sibling, 0 replies; 2+ messages in thread
From: checkpatch @ 2020-05-13 15:32 UTC (permalink / raw)
To: test-report; +Cc: Morten Brørup
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/70189
_coding style issues_
WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#49:
Testing if the ring is empty is as simple as comparing the producer and
consumer pointers.
In theory, this optimization reduces the number of potential cache misses
from 3 to 2 by not having to read r->mask in rte_ring_count().
It is not possible to enqueue more elements than the capacity of a ring,
so the capacity comparison is a safeguard for observer threads only.
Instead of completely removing the comparison, I have reorganized it to
resemble the other trigrahps in the ring library and added a likely().
The modification of these two functions were discussed in the RFC here:
https://mails.dpdk.org/archives/dev/2020-April/165752.html
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#96: FILE: lib/librte_ring/rte_ring.h:202:
+ for (i = 0; i < (n & ((~(unsigned int)0x3))); i+=4, idx+=4) { \
^
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#96: FILE: lib/librte_ring/rte_ring.h:202:
+ for (i = 0; i < (n & ((~(unsigned int)0x3))); i+=4, idx+=4) { \
^
WARNING:TYPECAST_INT_CONSTANT: Unnecessary typecast of c90 int constant
#96: FILE: lib/librte_ring/rte_ring.h:202:
+ for (i = 0; i < (n & ((~(unsigned int)0x3))); i+=4, idx+=4) { \
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#105: FILE: lib/librte_ring/rte_ring.h:233:
+ for (i = 0; i < (n & (~(unsigned int)0x3)); i+=4, idx+=4) {\
^
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#105: FILE: lib/librte_ring/rte_ring.h:233:
+ for (i = 0; i < (n & (~(unsigned int)0x3)); i+=4, idx+=4) {\
^
WARNING:TYPECAST_INT_CONSTANT: Unnecessary typecast of c90 int constant
#105: FILE: lib/librte_ring/rte_ring.h:233:
+ for (i = 0; i < (n & (~(unsigned int)0x3)); i+=4, idx+=4) {\
total: 4 errors, 3 warnings, 125 lines checked
^ permalink raw reply [flat|nested] 2+ messages in thread
* [dpdk-test-report] |WARNING| pw70189 ring: empty and count optimizations
[not found] <20200513153111.37063-1-mb@smartsharesystems.com>
2020-05-13 15:32 ` [dpdk-test-report] |WARNING| pw70189 [PATCH] ring: empty and count optimizations checkpatch
@ 2020-05-14 0:16 ` 0-day Robot
1 sibling, 0 replies; 2+ messages in thread
From: 0-day Robot @ 2020-05-14 0:16 UTC (permalink / raw)
To: test-report; +Cc: mb, robot
From: robot@bytheb.org
Test-Label: travis-robot
Test-Status: WARNING
http://dpdk.org/patch/70189
_Travis build: failed_
Build URL: https://travis-ci.com/ovsrobot/dpdk/builds/165760663
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-14 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200513153111.37063-1-mb@smartsharesystems.com>
2020-05-13 15:32 ` [dpdk-test-report] |WARNING| pw70189 [PATCH] ring: empty and count optimizations checkpatch
2020-05-14 0:16 ` [dpdk-test-report] |WARNING| pw70189 " 0-day Robot
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).