All of lore.kernel.org
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 413] rte_ring: capacity was set uncorrectly
@ 2020-02-27 15:04 bugzilla
  2020-08-14 10:40 ` [dpdk-dev] [Bug 413] rte_ring: capacity was set incorrectly bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2020-02-27 15:04 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=413

            Bug ID: 413
           Summary: rte_ring: capacity was set uncorrectly
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: 781345688@qq.com
  Target Milestone: ---

In function `rte_ring_init()` in `lib/librte_ring/rte_ring.c`, `capacity` was
set to `mask` when count was power of 2, while `mask` was set to `count - 1`.
But when specified with flag `RING_F_EXACT_SZ`, `capacity` was set to `count`.
I think `capacity` should be set to `count` anyway. It's illogical when you
create a ring of count 4096 but you can only use 4095 of it. And when you
create a ring of count 4095, you can use 4095 of it. Their logic should be
identical.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-dev] [Bug 413] rte_ring: capacity was set incorrectly
  2020-02-27 15:04 [dpdk-dev] [Bug 413] rte_ring: capacity was set uncorrectly bugzilla
@ 2020-08-14 10:40 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2020-08-14 10:40 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=413

Bruce Richardson (bruce.richardson@intel.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Bruce Richardson (bruce.richardson@intel.com) ---
Closing off this bug as current behaviour is as designed and the requested
behaviour is not possible with the current rte_ring architecture.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-14 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 15:04 [dpdk-dev] [Bug 413] rte_ring: capacity was set uncorrectly bugzilla
2020-08-14 10:40 ` [dpdk-dev] [Bug 413] rte_ring: capacity was set incorrectly bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.