* [dpdk-dev] AF_XDP PMD cannot use with software NICs
@ 2019-05-25 0:45 Yutaro Hayakawa
2019-05-28 9:40 ` Burakov, Anatoly
0 siblings, 1 reply; 2+ messages in thread
From: Yutaro Hayakawa @ 2019-05-25 0:45 UTC (permalink / raw)
To: dev
Hello,
In current AF_XDP PMD implementation, we cannot use it with software NICs like VETH. Because it allocates umem with RTE_MEMZONE_IOVA_CONTIG.
Since AF_XDP itself is usable with any network devices, I think it is better to have option to take umem with RTE_MEMZONE_SIZE_HINT_ONLY. It is also useful for testing perpose or using DPDK from containers.
Any thought or future plan for this problem?
Thanks,
Yutaro
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] AF_XDP PMD cannot use with software NICs
2019-05-25 0:45 [dpdk-dev] AF_XDP PMD cannot use with software NICs Yutaro Hayakawa
@ 2019-05-28 9:40 ` Burakov, Anatoly
0 siblings, 0 replies; 2+ messages in thread
From: Burakov, Anatoly @ 2019-05-28 9:40 UTC (permalink / raw)
To: Yutaro Hayakawa, dev
On 25-May-19 1:45 AM, Yutaro Hayakawa wrote:
> Hello,
>
> In current AF_XDP PMD implementation, we cannot use it with software NICs like VETH. Because it allocates umem with RTE_MEMZONE_IOVA_CONTIG.
>
> Since AF_XDP itself is usable with any network devices, I think it is better to have option to take umem with RTE_MEMZONE_SIZE_HINT_ONLY. It is also useful for testing perpose or using DPDK from containers.
I'm not sure i understand the problem. IOVA_CONTIG has no relation to
SIZE_HINT_ONLY - the former forces the allocation to be IOVA-contiguous.
The latter allows to allocate from other page sizes when the requested
one is not available, e.g. if you request memory with RTE_MEMZONE_1GB
and RTE_MEMZONE_SIZE_HINT_ONLY, it will try to allocate from 1GB pages
first, and if that fails, will allocate from any other page size
available - but says nothing about whether that memory has to be
IOVA-contiguous.
What is the problem with allocating IOVA-contiguous memory for AF_XDP
and VETH?
>
> Any thought or future plan for this problem?
>
> Thanks,
> Yutaro
>
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-28 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-25 0:45 [dpdk-dev] AF_XDP PMD cannot use with software NICs Yutaro Hayakawa
2019-05-28 9:40 ` Burakov, Anatoly
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).