DPDK usage discussions
 help / color / mirror / Atom feed
* mbuf validity in conjunction with ref cnt
@ 2025-02-21  7:39 Lokesh Chakka
  2025-02-21 18:46 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Lokesh Chakka @ 2025-02-21  7:39 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hello,

I've created mbuf using rte_pktmbuf_alloc.
Just after creating mbuf rte_mbuf_refcnt_read is giving 1.

After rte_eth_tx_burst, rte_mbuf_refcnt_read is giving 1.

Even
      rte_eth_tx_burst
      sleep(10);
       rte_mbuf_refcnt_read
is still giving 1

Even
      rte_eth_tx_burst
      sleep(10);
       rte_mbuf_refcnt_read // is still giving 1
       rte_pktmbuf_free
      sleep(10);
       rte_mbuf_refcnt_read // is still giving 1

Does it mean mbuf can be reused like
        while(1)
        {
                  rte_eth_tx_burst
        }


Thanks & Regards
--
Lokesh Chakka.

[-- Attachment #2: Type: text/html, Size: 1260 bytes --]

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

end of thread, other threads:[~2025-02-22 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-21  7:39 mbuf validity in conjunction with ref cnt Lokesh Chakka
2025-02-21 18:46 ` Stephen Hemminger
2025-02-22  4:52   ` Lokesh Chakka
2025-02-22 16:18     ` Stephen Hemminger

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