-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vhost config for netronome-packetgen #253
Comments
That error means its trying to configure some feature not supported by the (virtual) device, I unfortunately don't know much about the netronome packetgen and vhost devices, so I'm afraid it could be literally anything. Two ways to debug this:
|
Hi,
The Netronome packetgen script (by default), uses 1 TX queue, 1 RX queue,
1023 TX descriptors and 1023 RX descriptors when configuring a device.
Since in your case you did not specify any additional arguments, tose are
the values provided to device.lua for the device configuration (all other
values are left unspecified / nil)
I agree with Paul that the issue occurs when MoonGen / device configuration
is taking place, and one or more of the settings are not supported by your
device.
.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
…On Tue, Aug 13, 2019 at 1:41 PM Paul Emmerich ***@***.***> wrote:
That error means its trying to configure some feature not supported by the
(virtual) device, I unfortunately don't know much about the netronome
packetgen and vhost devices, so I'm afraid it could be literally anything.
Two ways to debug this:
1.
start with a simpler script, try the disableOffloads option
2.
figure out where exactly in device.c it is failing
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#253?email_source=notifications&email_token=AEX76NMAFXN4QZ7LH3TDKS3QEKMW3A5CNFSM4IKCLIMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FMR6Y#issuecomment-520800507>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEX76NOF2663DDBE6RLGJQLQEKMW3ANCNFSM4IKCLIMA>
.
|
Hello, Thank you for the response, the problem was the disableOffload, which is false by default. For vdev devices, I think we should set it true somewhere. |
@sarsanaee @emmericp Can someone help me understand how this dpdk-config.lua file works and how to manipulate it and make use of it for my purpose? |
Hi,
I'm not sure what exactly you are having trouble with, but from the
packetgen script point of view, here are some pointers:
You can specify multiple tx and / or rx ports / slaves on the command line
using the -tx and -rx command line parameters. For example, to specify
using ports 0 and 1 for tx, and ports 2 and 3 for rx, use these parameters:
…-tx 0 -tx 1 -rx 2 -rx 3
The port numbers refer to the ports / interface / devices as they are
defined in the dpdk conf .lua file.
As for configuring multiple VHost devices in a dpdk conf file, I'm afraid I
am not too familiar with how to do that.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Apr 15, 2020 at 9:28 AM Niranjan Madhavan ***@***.***> wrote:
@sarsanaee <https://github.com/sarsanaee> @emmericp
<https://github.com/emmericp>
Hi,
I'm trying to set up a system where MoonGen(in a container) send line rate
traffic to testpmd(in a container) through virtual ports (dpdkvhostuser
type) connected to an ovs-dpdk bridge. I have been able to initialize one
vdev parameter like you've mentioned here, and its getting recognized, but
I'm not sure how to add more than one vdev parameter.
Can someone help me understand how this dpdk-config.lua file works and how
to manipulate it and make use of it for my purpose?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEX76NO6K572YHZ4LRZP23DRMVOYBANCNFSM4IKCLIMA>
.
|
Hi @NetronomeMoongen But now I want to send using MoonGen , as I need it to resemble a DDOS attack. I've been able to configure one Vhost device in the dpdk-config file like @sarsanaee mentioned. It's getting recognized as Device 0. But I need to configure another vhost device too as Device 1 so that I can send packets. |
Hi,
Understood. I'm afraid I can't help with the VHost config stuff.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
…On Wed, Apr 15, 2020 at 10:22 AM Niranjan Madhavan ***@***.***> wrote:
Hi @NetronomeMoongen <https://github.com/NetronomeMoongen>
Thanks for the pointers. Actually, I've already been able to send packets
from pktgen using the similar setup, I've mentioned before.
But now I want to send using MoonGen , as I need it to resemble a DDOS
attack. I've been able to configure one Vhost device in the dpdk-config
file like @sarsanaee <https://github.com/sarsanaee> mentioned. It's
getting recognized as Device 0. But I need to configure another vhost
device too as Device 1 so that I can send packets.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEX76NI7B7UE7W7Q7BI5SYTRMVVEPANCNFSM4IKCLIMA>
.
|
Adding multiple --vdev ports means adding multiple --vdev config to your
DPDK configs I suppose. I still don't quite well understand what the
problem is. Is this all on one node?
You can just pass dpdk-config file to moongen like <moongen-script>
--dpdk-config="lalal" <all parameters>
Hope that helps,
Alireza
On Wed, Apr 15, 2020 at 4:36 PM Netronome-moongen <notifications@github.com>
wrote:
… Hi,
Understood. I'm afraid I can't help with the VHost config stuff.
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
>
Virus-free.
www.avast.com
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Apr 15, 2020 at 10:22 AM Niranjan Madhavan <
***@***.***>
wrote:
> Hi @NetronomeMoongen <https://github.com/NetronomeMoongen>
> Thanks for the pointers. Actually, I've already been able to send packets
> from pktgen using the similar setup, I've mentioned before.
>
> But now I want to send using MoonGen , as I need it to resemble a DDOS
> attack. I've been able to configure one Vhost device in the dpdk-config
> file like @sarsanaee <https://github.com/sarsanaee> mentioned. It's
> getting recognized as Device 0. But I need to configure another vhost
> device too as Device 1 so that I can send packets.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#253 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AEX76NI7B7UE7W7Q7BI5SYTRMVVEPANCNFSM4IKCLIMA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3ZZPPUYU4YAHCO4K4GEEDRMVWY5ANCNFSM4IKCLIMA>
.
|
I find this issue pretty misleading although it is created by myself since I eventually realized I had some misunderstandings regarding DPDK. But still, the responses helped me figure that out. |
@sarsanaee
|
@sarsanaee @NetronomeMoongen @emmericp Can someone help me with this and maybe explain how to use the dpdk-conf.lua file to add parameters(a list of all parameters available especially for vdev would help..not just the list of EAL parameters in the dpdk.org) |
Did you get it going? |
Hello
I want to config the netronome-packetgen to work with a vhost PMD port(using a
vdev
parameter), however, I have some issues in configuring it.Here is the command I run from the
MOONGEN_ROOT
:sudo ./build/MoonGen examples/netronome-packetgen/packetgen.lua --dpdk-config=libmoon/dpdk-conf.lua --tx-slave 0
Here is my
dpdk-config
:It actually recognizes my
vhost port
, here is the dpdk log:However, I still get the following error:
I couldn't figure out where the issue is in this case!
Thanks,
Alireza
The text was updated successfully, but these errors were encountered: