[dpdk-dev] Aligned RX data.

Ananyev, Konstantin konstantin.ananyev at intel.com
Tue Oct 7 12:05:19 CEST 2014



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Alex Markuze
> Sent: Tuesday, October 07, 2014 10:40 AM
> To: dev at dpdk.org
> Subject: [dpdk-dev] Aligned RX data.
> 
> Hi , I'm trying to receive aligned packets from the wire.
> Meaning that for all received packets the pkt.data is always aligned to
> (512 -H).
> 
> Looking at the pmds of ixgbe/vmxnet I see that the pmds call
> __rte_mbuf_raw_alloc and set the rx descriptor with a
> RTE_MBUF_DATA_DMA_ADDR_DEFAULT
> Instead of the more appropriate RTE_MBUF_DATA_DMA_ADDR.
> 
> Do I need to modify each pmd I'm using to be able to receive aligned data?

Make sure that your all your mbufs are aligned by 512 and set in your config RTE_PKTMBUF_HEADROOM=512-H?


> Or have I missed something?
> 
> Thanks


More information about the dev mailing list