Skip to content
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

Support for TAP interface with kernel #841

Open
gaurav-4g opened this issue Sep 21, 2024 · 2 comments
Open

Support for TAP interface with kernel #841

gaurav-4g opened this issue Sep 21, 2024 · 2 comments

Comments

@gaurav-4g
Copy link

Hi,

As DPDK has discontinued KNI support from release 23.11 , any plan to support other alternatives like TAP

@zhaozihanzzh
Copy link
Contributor

I think virtio_user has been supported in F-Stack. According to this example file, we can change type to 1 to use virtio_user instead of kni as exception path type.

@tarasko
Copy link

tarasko commented Sep 30, 2024

I recently made a small patch to F-Stack to allow arbitrary arguments for DPDK. This way DPDK is able to create a TAP interface.

In config.init

extra_args=--vdev=net_tap0,mac=00:00:00:00:00:01
tx_csum_offoad_skip=1

[port0]
addr=192.168.100.3
netmask=255.255.255.0
gateway=192.168.100.1
broadcast=192.168.100.255

Then with a little extra configuration I was able to run a regular client against F-Stack based server through TAP on the same machine.

$ sudo ip addr add 192.168.100.2/24 dev dtap0
$ sudo arp -s 192.168.100.3 00:00:00:00:00:01
$ sudo ff_arp -p 0 -s 192.168.100.2 00:00:00:00:00:01

https://github.com/tarasko/f-stack/tree/feature/add_dpdk_extra_args

What do you think of this approach?
It is quite convenient for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants