Re: [vpp-dev] [QUESTION] How to add virtual interfaces on ARM board

2023-03-23 Thread Lijian Zhang
You can run multiple VPP instances [1] and connect them using memif interface, 
which is shared memory-based software interface.
VPP also has packet generator, to emulate the PC1, PC2 in your topology.

In this way, you can achieve the topology based on pure software implementation.

[1]
https://s3-docs.fd.io/vpp/23.06/gettingstarted/progressivevpp/twovppinstances.html

Thanks.
From: vpp-dev@lists.fd.io  On Behalf Of Xiaodong Xu via 
lists.fd.io
Sent: Thursday, March 23, 2023 12:51 PM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] [QUESTION] How to add virtual interfaces on ARM board

Maybe you can try host interface in this case, since you are going to share the 
control traffic and the user traffic on the only NIC. Check 
https://s3-docs.fd.io/vpp/23.06/gettingstarted/progressivevpp/interface.html#create-vpp-host-interface
 for more details.

Regards,
Xiaodong

On Wed, Mar 22, 2023 at 6:50 PM mailto:dorian_...@126.com>> 
wrote:
Hi,

I'm a newbie and study vpp recently. I succeed cross compiling vpp (including 
my own plugin) , and it can be started up on my arm64 board (aarch64 ubuntu 
18.04).  But there is only one physical NIC (eth1)  which I can use on the 
board, and I don't need dpdk, so there is only local0 when I run "show int" cmd.

My question is how to add two more ip addresses (maybe virtual interface?)  as 
below network tepology.

[cid:image001.png@01D95E2F.CC74F0B0]

My own plugin implements ip-in-ip, something like gre or gtp tunnel, to remove 
ip header from port1 to port2 and add ip header from port2 to port1.

Note that this vpp program and the whole function can run successfully on PC 
vmware ubuntu virtual machine with dpdk, since I can create more ensXXX in the 
virtual machine, and I use igb_uio dpdk driver to operate the interface. But I 
really don't know how to implement the same function on the board in case there 
is only one NIC. Both with or without dpdk is ok for me, as it seems that 
igb_uio.ko is not supported on the board NIC, only rte_kni.ko is supported, and 
I'm not sure if kni is still suppored in vpp dpdk plugin.

Any helps will be appreciated. Thanks!
Dorian


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22761): https://lists.fd.io/g/vpp-dev/message/22761
Mute This Topic: https://lists.fd.io/mt/97793306/21656
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] [QUESTION] How to add virtual interfaces on ARM board

2023-03-23 Thread Dorian Lau
Hi Xiaodong,

Thanks for your reply.

I'm studying your link and also searching some other topics & messages. Your 
link about host interface is AF_PACKET, right? I searched other posts mentioned 
tap has better performance than host interface. Can I use tap for my 
requirement?

Dorian

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22755): https://lists.fd.io/g/vpp-dev/message/22755
Mute This Topic: https://lists.fd.io/mt/97793306/21656
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] [QUESTION] How to add virtual interfaces on ARM board

2023-03-22 Thread Xiaodong Xu
Maybe you can try host interface in this case, since you are going to share
the control traffic and the user traffic on the only NIC. Check
https://s3-docs.fd.io/vpp/23.06/gettingstarted/progressivevpp/interface.html#create-vpp-host-interface
for more details.

Regards,
Xiaodong

On Wed, Mar 22, 2023 at 6:50 PM  wrote:

> Hi,
>
> I'm a newbie and study vpp recently. I succeed cross compiling vpp
> (including my own plugin) , and it can be started up on my arm64 board
> (aarch64 ubuntu 18.04).  But there is only one physical NIC (eth1)  which I
> can use on the board, and I don't need dpdk, so there is only local0 when I
> run "show int" cmd.
>
> My question is how to add two more ip addresses (maybe virtual
> interface?)  as below network tepology.
>
>
>
> My own plugin implements ip-in-ip, something like gre or gtp tunnel, to
> remove ip header from port1 to port2 and add ip header from port2 to port1.
>
> Note that this vpp program and the whole function can run successfully on
> PC vmware ubuntu virtual machine with dpdk, since I can create more ensXXX
> in the virtual machine, and I use igb_uio dpdk driver to operate the
> interface. But I really don't know how to implement the same function on
> the board in case there is only one NIC. Both with or without dpdk is ok
> for me, as it seems that igb_uio.ko is not supported on the board NIC, only
> rte_kni.ko is supported, and I'm not sure if kni is still suppored in vpp
> dpdk plugin.
>
> Any helps will be appreciated. Thanks!
> Dorian
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22754): https://lists.fd.io/g/vpp-dev/message/22754
Mute This Topic: https://lists.fd.io/mt/97793306/21656
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]
-=-=-=-=-=-=-=-=-=-=-=-