DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 121] In ixgbe_tx_free_bufs function the variable free on stack is used before initialization
@ 2018-12-07 14:55 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2018-12-07 14:55 UTC (permalink / raw)
  To: dev

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

            Bug ID: 121
           Summary: In ixgbe_tx_free_bufs function the variable free on
                    stack is used before initialization
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: valentin.radulescu@enea.com
  Target Milestone: ---

static __rte_always_inline int
ixgbe_tx_free_bufs(struct ixgbe_tx_queue *txq)
{
....
    struct rte_mbuf *m, *free[RTE_IXGBE_TX_MAX_FREE_BUF_SZ];
....

       if (nb_free >= RTE_IXGBE_TX_MAX_FREE_BUF_SZ ||
            (nb_free > 0 && m->pool != free[0]->pool)) { <---free[0] is from
the stack
            rte_mempool_put_bulk(free[0]->pool,
                         (void **)free, nb_free);
            nb_free = 0;
        }

        free[nb_free++] = m;  <-- free is set later
}

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

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

only message in thread, other threads:[~2018-12-07 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07 14:55 [dpdk-dev] [Bug 121] In ixgbe_tx_free_bufs function the variable free on stack is used before initialization bugzilla

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).