Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-08-2014, 11:33 AM   #1
LQ Newbie
Registered: Jun 2014
Posts: 11

Rep: Reputation: Disabled
SR-IOV Setup on boot

I am trying to setup SR-IOV on my Intel 82576 but it does not take at boot.

options max_vfs 7

System boots and detects the 82576 and loads the igb module. But the config file options is not read and I only see the two built in 82576 in lspci.

If I manually remove the igb module (loosing all network settings) and the reload everything is fine. I see the 2 physical and 14 virtual 82576 cards.
modprobe -r igb
modprobe igb max_vfs=7

Why does the igb.conf not get read at boot. I have seen some posts that state max_vfs=7, but that raises an error - invalid syntax line 1.

Any help would be appreciated.
Old 06-09-2014, 04:00 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,176

Rep: Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272
The name of the file in modprobe.d has no meaning. It is just a mnemonic for you. The module name goes on the options line, like so:
options igb max_vfs=7
Old 06-09-2014, 04:20 PM   #3
LQ Newbie
Registered: Jun 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks smallpond, with that change I no longer need to add the option when I do the modprobe igb. But it still does not work when I boot. I aslo checked all other files in modprobe.d for any reference to igb and found none.

I checked the boot logs and see everything boot fine but only two cards are found, not the two + 7 PF each. As soon as it is booted if I run:
modprobe -r igb
modprobe igb

Now I see all cards (lspci, ip addr list....)

Not very automated , boot, log into remote IPMI console, remove network module, re-add.

Any other thoughts or logs you can look at?
Old 11-23-2014, 01:54 PM   #4
LQ Newbie
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
The answer, for posterity, is that the igb module is loaded before the root fs is mounted, so the initramfs must be updated to reflect the module options.

sudo update-initramfs -u

Reboot and you should see that the options were used when the module was loaded during boot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel SR-IOV technology sahil.bansal840 Linux - Newbie 0 10-15-2012 09:38 AM
SR-IOV drivers for 82576 and 82599 kris@sjc Linux - Kernel 1 10-19-2010 10:51 AM
SR-IOV drivers for 82576 and 82599 kris@sjc Linux - Virtualization and Cloud 1 09-29-2010 01:26 AM
SR-IOV drivers for 82576 and 82599 kris@sjc Red Hat 1 09-29-2010 12:26 AM
CentOS5.5 with SR-IOV ramanaG Linux - Virtualization and Cloud 0 07-14-2010 11:41 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration