-
Notifications
You must be signed in to change notification settings - Fork 535
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
What needs to be done to make vlan tags visible to netmap in emulated mode? #904
Comments
It can be done, but it has to be implemented. This code |
Do those fixes also apply to the ixgbe driver? I've been fighting this issue for quite some time with Netmap in trying to access the interface as a trunk port, i.e. multiple VLANs at once on the same interface. |
The ixgbe driver has native netmap support, so that's a different story. With native support you should be able to see the VLAN tag if you disable the VLAN hw offloads, as described in the README.md. |
Thanks. Yes, I am using native and not emulated mode. I also have all VLAN offloads disabled, however, I still do not receive the VLAN tags in the received packets. For performance reasons I am using a 4.4.86 kernel, (newer had much worse performance) and running inside a VM with the interface connected in PCI passthrough mode, where the complete interface is disconnected from the host and connected to the VM. In other words, I am not using VFs I was not able to get VLAN packets out/in using VFs in SR-IOV mode. |
There must be something wrong with your offload configuration... |
Also make sure you are not using emulated mode, by checking in the
is present, then you are using emulated mode. |
It sounds like you may be looking for a way to view VLAN tags in your system
, even when the computer has a new NIC. Unfortunately, since netmap emulates
mode is designed to avoid clutter, it's not possible to view VLAN tags in
this situation. However, there are a few workarounds that you may be able to
use in this case. One solution may be to use a software-defined network (SDN
) that can handle VLAN tags across multiple locations and over time. Another
possible workaround is to use a virtualized environment such as VMware or
Oracle VirtualBox which can provide the necessary tracking for the VLAN tags
. If both of these solutions are not feasible for your current setup, you
may
…On Thu, 12 Jan 2023 at 10:29, koverskeid ***@***.***> wrote:
My plan is to use netmap in a system where that will be deployed at
multiple locations also many years ahead in time. This makes it handy to
use netmap in emulated mode to avoid clutter when the computers suddenly
has a new nic.
However, now I cannot see vlan tags, which is a huge drawback. I think I
understand the explanation in #259
<#259>, but I don't understand
why it has to be this way.
Do I just have to accept this or is there a way to sneak around this issue
somehow?
—
Reply to this email directly, view it on GitHub
<#904>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWYCAL6PYPR543A7X7EMQT3WR7MJXANCNFSM6AAAAAATZCRXHM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It sounds like you need a solution that allows you to use netmap in emulated mode with Linux (Ubuntu) while still allowing you to see the VLAN tags. Have you tried using a virtual switch such as Open vSwitch or OpenFlow? This would allow you to configure your network to handle VLAN tags and have the flexibility you need for your system deployment. Let me know if you need any help setting this up! |
My intesion is to implement a prp solution, so I need to receive frames on two interfaces with or withouth vlan tags, analyze them in a user space program, drop them or modify and forward them to a tap interface. Is this possible to achieve with Open vSwitch or OpenFlow? |
My plan is to use netmap in a system that will be deployed at multiple locations also many years ahead in time. This makes it handy to use netmap in emulated mode to avoid clutter when the computers suddenly has a new nic.
On FreeBSD, this is not a problem, but on Linux (Ubuntu) I cannot see vlan tags, which is a huge drawback. I think I understand the explanation in #259, but I don't understand why it has to be this way.
Do I just have to accept this or is there a way to sneak around this issue somehow?
The text was updated successfully, but these errors were encountered: