DPDK usage discussions
 help / color / mirror / Atom feed
* Attaching an external buffer to mbuf to be processed by VRAN Boost
@ 2024-07-31  9:36 Rasa Varathan
  0 siblings, 0 replies; only message in thread
From: Rasa Varathan @ 2024-07-31  9:36 UTC (permalink / raw)
  To: users

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

Hi all,
I am trying to attach an external buffer to mbuf and process that in VRAN boost, but keep getting a Data Error on VRAN Boost.

Does VRAN boost support this process?

The process I use is similar to the example test_compressdec.c


static void extbuf_free_callback(void *addr __rte_unused, void *opaque __rte_unused)
{
}


// Attach  external buffer
struct rte_mbuf* Input_pkts_burst[1];

static struct rte_mbuf_ext_shared_info inbuf_info;
inbuf_info.free_cb = extbuf_free_callback;
inbuf_info.fcb_opaque = NULL;
rte_mbuf_ext_refcnt_set(&inbuf_info, 1);

rte_iova_t buf_iova = rte_mem_virt2iova(&Input_Data);
if (buf_iova == RTE_BAD_IOVA)
{
    printf(" RTE_BAD_IOVA  returned\n");
}

rte_pktmbuf_attach_extbuf(Input_pkts_burst[0],
                  &Input_Data,
                  buf_iova ,
                  inbutDataSize,
                  &inbuf_info);

input_pkts_burst[0]->data_off = 0;
input_pkts_burst[0]->data_len = inbutDataSize;
input_pkts_burst[0]->pkt_len  = inbutDataSize;

Could someone let me know, why am I getting a data error.

If I use an memcpy to copy the contents of Input_Data to Input_pkts_burst[0]. then the data is processed successfully by VRAN Boost.

Best Regards,
Rasa


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

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

only message in thread, other threads:[~2024-08-01  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31  9:36 Attaching an external buffer to mbuf to be processed by VRAN Boost Rasa Varathan

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