DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] mbuf: how to set data to NULL?
@ 2014-12-17 16:44 Kavanagh, Mark B
  2014-12-17 16:49 ` Bruce Richardson
  0 siblings, 1 reply; 5+ messages in thread
From: Kavanagh, Mark B @ 2014-12-17 16:44 UTC (permalink / raw)
  To: dev

Hi,

DPDK 1.8.0 removes the data pointer from the mbuf structure, such that the start of the data in the segment buffer must be calculated (i.e. buf_addr + data_off = 'data').

Given this, what is the best approach to set the mbuf data to NULL (previously mbuf.data = NULL)?

As I see it, given an initialized mbuf, such that buf_addr is non-null, and data_off =RTE_PKTMBUF_HEADROOM, is it fair to say that the best solution is to memset to 0 from location (buf_addr + data_off) for a length of (data_len - data_off)?

Thanks in advance,
Mark

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

end of thread, other threads:[~2015-02-09 13:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 16:44 [dpdk-dev] mbuf: how to set data to NULL? Kavanagh, Mark B
2014-12-17 16:49 ` Bruce Richardson
2015-02-09 10:51   ` Kavanagh, Mark B
2015-02-09 12:58     ` Bruce Richardson
2015-02-09 13:43       ` Kavanagh, Mark B

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