Skip to contentSkip to conversation

veth interfaces

DISCUSSION Ivano Cerrato 2 participants 4 messages May 27, 2014 – Jun 3, 2014 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,
is it possible to use DPDK to send packets on a veth interface?

Thanks in advance,

Ivano

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hello,
I apologize for the imprecise email I sent, and now I try to be more specific about what I would like to do.

I have a module that receives traffic from the network using DPDK and, based on the packet content, should provide packets to the proper Docker container. Docker containers receive packets through a veth interface.

Can I use DPDK features, in particular the KNI, to send packets on a veth interface? If the KNI is not appropriate, is there something else that I could use?

Regards,

Ivano

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hi Ivano,

I think you can use the KNI, there is example/kni and doc. Please visit if you have not done it. Please keep us updated on your journey with Docker containers. :-)

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Ivano Cerrato
Sent: Friday, May 30, 2014 3:02 PM
To: [email protected]
Subject: Re: [dpdk-dev] veth interfaces

Hello,
I apologize for the imprecise email I sent, and now I try to be more specific about what I would like to do.

I have a module that receives traffic from the network using DPDK and, based on the packet content, should provide packets to the proper Docker container. Docker containers receive packets through a veth interface.

Can I use DPDK features, in particular the KNI, to send packets on a veth interface? If the KNI is not appropriate, is there something else that I could use?

Regards,

Ivano

A message that is not in the archive (sent off-list or not yet received): CAD16F236028A64DBBC0158B1636EA4510EB0973-0J0gbvR4kTg/[email protected]

#6 lore raw

Hello,
thanks for the answer.

Using the KNI API, I create a new interface, and then I "push it into the container". At this point, from the container, I send traffic and it is received in the KNI example program.

Instead, in my understanding, it is not possible to attach KNI to an already existing interface. Am I right?

Thank you,

Ivano

Il 30/05/2014 14:49, Zhu, Heqing ha scritto:

Quoted 22 lines

Hi Ivano,

I think you can use the KNI, there is example/kni and doc. Please visit if you have not done it. Please keep us updated on your journey with Docker containers. :-)

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Ivano Cerrato
Sent: Friday, May 30, 2014 3:02 PM
To: [email protected]
Subject: Re: [dpdk-dev] veth interfaces

Hello,
I apologize for the imprecise email I sent, and now I try to be more specific about what I would like to do.

I have a module that receives traffic from the network using DPDK and, based on the packet content, should provide packets to the proper Docker container. Docker containers receive packets through a veth interface.

Can I use DPDK features, in particular the KNI, to send packets on a veth interface? If the KNI is not appropriate, is there something else that I could use?

Regards,

Ivano