From: Rasa Varathan <varathan@hotmail.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Attaching an external buffer to mbuf to be processed by VRAN Boost
Date: Wed, 31 Jul 2024 09:36:21 +0000 [thread overview]
Message-ID: <DB9P251MB0617CCE41451999C33F714FAD8B12@DB9P251MB0617.EURP251.PROD.OUTLOOK.COM> (raw)
[-- 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 --]
reply other threads:[~2024-08-01 8:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB9P251MB0617CCE41451999C33F714FAD8B12@DB9P251MB0617.EURP251.PROD.OUTLOOK.COM \
--to=varathan@hotmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).