Jump to content
librin.so.1

SR-IOV NICs and VLANs

Recommended Posts

Hello, so I looked into the recently added documentation on SR-IOV Device Configuration under the Networking page on wiki and I see this, quote:

Quote

vlan= is optional. If given, the hardware will tag and untag the packets automatically, and will prevent the guest system from altering it.

but if I do treat is as optional, as the wiki says and not set it, it all errors out:

root@g44:~# rc-service net.test start
net.test            | * Caching service dependencies ...

 * ERROR: Required configuration variable(s) are missing:
 * 
 *     vlan
 * 
 * Please correct your configuration to address this issue.
                                                                                                                                                                                                                                                                          [ ok ]
net.test            |
net.test            | * ERROR: Required configuration variable(s) are missing:
net.test            | * 
net.test            | *     vlan
net.test            | * 
net.test            | * Please correct your configuration to address this issue.
net.test            |
net.test            | * ERROR: net.test failed to start

So the question is: is the documentation wrong and it is required or is it a bug?

As vlans are rather pointless in my use-case, I am asking because I want to know whether I should start dealing with vlans after all, if required or should I wait until it's fixed, in case it's a bug. Thanks!

Share this post


Link to post
Share on other sites
2 hours ago, lego12239 said:

Hi. Show please your /etc/conf.d/net.test.

okay, here it is:

template=interface-noip
virtfn=1
trunk=net.intl
mac_replace="[redacted]"

 

Share this post


Link to post
Share on other sites
$ equery l corenetwork
 * Searching for corenetwork ...
[IP-] [  ] sys-apps/corenetwork-1.6.5:0

I have 1.6.5 version of corenetwork and there is nothing about virtfn. May be this changes aren't accessible yet.

Share this post


Link to post
Share on other sites

I have 1.6.5, too and I have grep'd through my entire rootfs and only other references to virtfn I found were in the kernel source code under /usr/src/linux and not a trace anywhere else. This confused me a bit, on how virtfn variable is handled on the userspace side at all. That's one of the reasons I ended up asking here – I ran out of ideas on how to figure it out myself without employing some very tedious and time-consuming approaches.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...