Adding Compilation option for VTNET Driver

Jakobsen, Björn <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
Hello,

i hope this is the right mailing list. I wanted to add an compilation Option, and small change to the VTNET (VirtIO Networking) Driver, and wanted to know if this is fine to submit. The Problem is, that i need an ALTQ capable kernel, and that the VTNET Interfaces are multiqueue capable. This isn't possible, as the source for the VTNET Driver contains this check:

"""
#ifdef ALTQ
#define VTNET_LEGACY_TX
#endif
"""

Which causes it to not be Multiqueue capable, and instead being ALTQ capable. I would like to add an option, called "VTNET_NO_ALTQ" or "VTNET_FORCE_MULTIQUEUE", and modify the check above to be:

"""
#if defined ALTQ && ! defined VTNET_NO_ALTQ
#define VTNET_LEGACY_TX
#endif
"""

So that it is possible, to have a Kernel with ALTQ, but that the VTNET Driver is not ALTQ capable, and instead Multiqueue capable.

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.