Re: [vpp-dev] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-09 Thread Matthew Smith via lists.fd.io
You haven't shared any details of where you placed these calls in the dpdk
plugin, but I suspect that they were successful because they were executed
after the dpdk plugin had already called rte_eal_init(). When called from
your plugin, rte_eal_init() had probably not been called yet.

You could try to confirm that this is the problem by adding log messages to
announce when rte_eal_init(), rte_ring_create(), and rte_mempool_create()
are about to be called and check the order that those messages appear in
your logs. Or you could run VPP in a debugger and set breakpoints on those
3 functions and check what order the breakpoints are hit. If the calls to
rte_ring_create() and rte_mempool_create() come before rte_eal_init() has
been called, you need to adjust your plugin code so it calls them after
rte_eal_init() has been called. If not, and rte_eal_init() is being called
first, then I have no further guesses on the source of your issues.

-Matt



On Tue, Feb 7, 2023 at 7:23 PM kk  wrote:

> I read the official example given by dpdk. The two function interfaces
> "rte_ring_create and rte_mempool_create" should indeed be called after
> rte_eal_init(). The problem is that I have no problem calling these two
> function interfaces in the vpp dpdk plug-in, which is very strange.
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22576): https://lists.fd.io/g/vpp-dev/message/22576
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-07 Thread kk
I read the official example given by dpdk. The two function interfaces 
"rte_ring_create and rte_mempool_create" should indeed be called after 
rte_eal_init(). The problem is that I have no problem calling these two 
function interfaces in the vpp dpdk plug-in, which is very strange.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22565): https://lists.fd.io/g/vpp-dev/message/22565
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-07 Thread Matthew Smith via lists.fd.io
Are you calling those functions in an init/config function for your plugin?
Maybe they are being called before the dpdk plugin has executed
rte_eal_init().

-Matt


On Tue, Feb 7, 2023 at 4:05 AM kk  wrote:

> Hello everyone, I wrote a vpp plug-in by myself. I called the dpdk
> function interface "rte_ring_create and rte_mempool_create" in this
> plug-in, and then it will prompt:
> "MEMPOOL: Cannot allocate tailq entry!
> Problem getting send ring
> RING: Cannot reserve memory for tailq
> RING: Cannot reserve memory for tailq
> ",
> does anyone know what's going on?
> And I found that I have no problem calling this function interface in the
> vpp-dpdk plug-in.
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22561): https://lists.fd.io/g/vpp-dev/message/22561
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-07 Thread kk
Hello everyone, I wrote a vpp plug-in by myself. I called the dpdk function 
interface "rte_ring_create and rte_mempool_create" in this plug-in, and then it 
will prompt:
"MEMPOOL: Cannot allocate tailq entry!
Problem getting send ring
RING: Cannot reserve memory for tailq
RING: Cannot reserve memory for tailq
",
does anyone know what's going on?
And I found that I have no problem calling this function interface in the 
vpp-dpdk plug-in.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22557): https://lists.fd.io/g/vpp-dev/message/22557
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-