PCI-PT : SRIOV enabled interface dev_name in pci whitelist does not give the product_id of PF for the direct-physical_network , it always take the VF's product_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Low
|
Chen Fan |
Bug Description
I wanted to Boot direct-physical port on sriov enabled device and use it as PCI device rather than sriov device
Steps to reproduce :
1) Create a direct-physical port and Boot a VM
neutron port-create n5 --binding:vnic-type direct-physical
Nova.conf
pci_passthrough
pci_passthrough
n-cpu.log
pci_stats details
[PciDevicePool(
stack@ubuntu:
02:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
02:00.1 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
02:00.2 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
02:00.3 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe [14e4:1657] (rev 01)
04:00.0 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
04:00.1 Ethernet controller [0200]: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
04:10.0 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.1 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.2 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.3 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.4 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.5 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.6 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:10.7 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.0 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.1 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.2 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.3 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.4 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
04:11.5 Ethernet controller [0200]: Intel Corporation 82599 Ethernet Controller Virtual Function [8086:10ed] (rev 01)
tack@ubuntu:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | ubuntu |
| binding:profile | {"pci_slot": "0000:04:11.4", "physical_network": "physnet1", "pci_vendor_info": "8086:10ed"} |
| binding:vif_details | {"port_filter": false, "vlan": "1412"} |
| binding:vif_type | hostdev_physical |
| binding:vnic_type | direct-physical |
| created_at | 2016-05-17T14:20:57 |
| description | |
| device_id | bb147b1c-
| device_owner | compute:nova |
| dns_name | klil |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "51b9f497-
| id | 449f818e-
| mac_address | fa:16:3e:9d:1e:ed |
| name | |
| network_id | 5018d1a8-
| port_security_
| security_groups | f75bedb9-
| status | ACTIVE |
| tenant_id | 3e45f4ba4e9b42f
| updated_at | 2016-05-17T14:21:17 |
+------
tags: | added: nfv pci sriov |
Changed in nova: | |
assignee: | nobody → Chen Fan (fan-chen) |
Changed in nova: | |
status: | New → In Progress |
if a device type is type_PF it should always give PF product id .
product_id=10fb rather than VF 10ed
[PciDevicePool( count=7, numa_node= None,product_ id='10ed' ,tags={ dev_type= 'type-VF' ,physical_ network= 'physnet2' },vendor_ id='8086' ), PciDevicePool( count=1, numa_node= None,product_ id='10fb' ,tags={ dev_type= 'type-PF' ,physical_ network= 'physnet1' },vendor_ id='8086' )]