ring: fix description
The index description isn't right, correct it as the Programmer's guide said. Also correct the guide's figure description about 'Dequeue First Step'. Fixes:4a22e6ee3d
("doc: refactor figure numbers into references") Fixes:af75078fec
("first public release") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
This commit is contained in:
parent
5135eedeea
commit
a2248c87e2
@ -172,7 +172,7 @@ If there are not enough objects in the ring (this is detected by checking prod_t
|
||||
|
||||
.. figure:: img/ring-dequeue1.*
|
||||
|
||||
Dequeue last step
|
||||
Dequeue first step
|
||||
|
||||
|
||||
Dequeue Second Step
|
||||
|
@ -111,8 +111,8 @@ struct rte_ring_hts_headtail {
|
||||
* An RTE ring structure.
|
||||
*
|
||||
* The producer and the consumer have a head and a tail index. The particularity
|
||||
* of these index is that they are not between 0 and size(ring). These indexes
|
||||
* are between 0 and 2^32, and we mask their value when we access the ring[]
|
||||
* of these index is that they are not between 0 and size(ring)-1. These indexes
|
||||
* are between 0 and 2^32 -1, and we mask their value when we access the ring[]
|
||||
* field. Thanks to this assumption, we can do subtractions between 2 index
|
||||
* values in a modulo-32bit base: that's why the overflow of the indexes is not
|
||||
* a problem.
|
||||
|
Loading…
Reference in New Issue
Block a user