Comments (4)
There are two approaches.
The first (and probably easier/preferred) one is the "external drivers" one, where basically netmap downloads the original source code from the Internet (for a given version), patches it and compiles the patched kernel module.
You will need
- A netmap patch. For virtio_net the patch is is https://github.com/luigirizzo/netmap/blob/master/LINUX/final-patches/custom--virtio_net.c--4.9
- Netmap support header. FOr virtio_net the header is https://github.com/luigirizzo/netmap/blob/master/LINUX/if_virtio_net_netmap.h
- Modifications to the build system, e.g. https://github.com/luigirizzo/netmap/blob/master/LINUX/configure and https://github.com/luigirizzo/netmap/blob/master/LINUX/default-config.mak.in_ (but I'm not able to give more details on this)
The second approach is using the sources from the running kernel, and still ofc applying a patch. The problem is that there are so many versions of the driver that you need to prepare many patches, and this is complex. Also, for the case of virtio-net the driver evolves very quickly, so that the problem becomes even worse.
from netmap.
Ok, thanks for replying.
So in theory, in simplest terms, is to use the Virtio files as listed above as templates for the Azure NICs. Then modify the build systems files as above.
from netmap.
Would it be possible to use the AWS ENA files as a reference to the modify the Azure MANA files? This avoids modifying the Netmap files from the looks of it. The reason asking of this, is that for FreeBSD, the ENA files have Netmap coding within them, thus allows Netmap to support ENA. I assume that would be the second approach method that was mentioned.
Example:
AWS ENA Files: https://github.com/freebsd/freebsd-src/tree/main/sys/dev/ena
MS MANA Files: https://github.com/freebsd/freebsd-src/tree/main/sys/dev/mana
from netmap.
It is possibile. And yes, that would be the second approach. I thought you wanted to work on Linux, so my answer was set on this assumption.
If you want to add netmap support for FreeBSD, instead, then it's actually easier. You can just submit a patch to the FreeBSD project (changes to the MANA driver plus the MANA netmap header implementing txsync/rxsync and the other netmap callbacks.
from netmap.
Related Issues (20)
- nm_open with range of queues HOT 4
- Failure accessing netmap: Invalid argument HOT 1
- netmap causing hang of kernel worker.
- netmap i40e not support 6.6.4
- ProxMox + VirtIO (KVM)
- igc driver does not seem to work HOT 2
- num_slots on RX rings are zero HOT 2
- igb_netmap_rxsync error HOT 1
- Can't build ICE drivers HOT 5
- netmap_ring_reinit problems when running Zeek with netmap pipes
- Can't build netmap with ice 1.13.7 driver HOT 1
- netmap vm Question
- Is it possible to apply a patch to an external driver before configure checks it? HOT 1
- netmap_ring request size too large HOT 2
- netmap_ring request size 65792 too large HOT 1
- Build problem: Debian , Kernel 6.1 HOT 1
- Speed limited to 10Mbps when using virtio_net interfaces HOT 1
- e1000e driver cannot capture the packet,always show "Truncate incomplete fragment at" in dmesg
- Multi queue with multiple host rings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netmap.