Skip to content
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

OS-7458 bhyve should allow pci_slot addressing for NICs #940

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jasonbking
Copy link
Contributor

No description provided.

@@ -1745,6 +1745,35 @@ tab-complete UUIDs rather than having to type them out for every command.
create: yes
update yes (requires zone stop/boot)

nics.*.pci_slot:

Specifies the virtual PCI slot that this NIC will occupy. Bhyve places
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also have a partial branch for this that I never got to work due to VM.js being rather confusing around nics...

Perhaps move the generic explenation of the bus/dev/function, we repeat it nearly verbatem for all *.pci_slot property and just keep the default device number used?

The man page is already pretyt long and just repeating nearly the same text a few times makes editing/reading it harder.

src/vm/node_modules/VM.js Outdated Show resolved Hide resolved
@@ -6342,6 +6342,11 @@ function buildNicZonecfg(vmobj, payload, log)
+ nic.allowed_dhcp_cids.join(',') + '")\n';
}

if (nic.hasOwnProperty('pci_slot')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we accountin for the primary property? Should that nic not be kept in the first slot as it currently is?

If i remember the boot.c for bhyve currently the primary nic is always slot 0. (I have not seen your boot.c changes as I can't find the PR for that atm?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should still work the same way as today -- we aren't requiring pci_slot for NICs, so if omitted, the NIC goes in the next available function in bus 0, slot 6

@sjorge
Copy link
Contributor

sjorge commented Jul 16, 2020

Bump, someone on the mailing list was looking at this to get more than 6 nics.

@liv3010m
Copy link

Hi guys, any chance this gets merged? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants