git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f84c9
)
bus/pci: support segment as address domain on Windows
author
Tal Shnaiderman
<talshn@nvidia.com>
Tue, 25 Aug 2020 11:43:16 +0000
(14:43 +0300)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 14 Oct 2020 09:03:44 +0000
(11:03 +0200)
Set the domain value for rte_pci_addr probing on Windows
to the value of the PCI segment returned by SPDRP_BUSNUMBER.
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
drivers/bus/pci/windows/pci.c
patch
|
blob
|
history
diff --git
a/drivers/bus/pci/windows/pci.c
b/drivers/bus/pci/windows/pci.c
index
9e5c8fa
..
2cd010a
100644
(file)
--- a/
drivers/bus/pci/windows/pci.c
+++ b/
drivers/bus/pci/windows/pci.c
@@
-195,8
+195,8
@@
get_device_pci_address(HDEVINFO dev_info,
return -1;
}
- addr->domain =
0
;
- addr->bus = bus_num;
+ addr->domain =
bus_num >> 8
;
+ addr->bus = bus_num
& 0xff
;
addr->devid = dev_and_func >> 16;
addr->function = dev_and_func & 0xffff;
return 0;