summaryrefslogtreecommitdiff
path: root/include/linux/pci-epc.h
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2018-01-05 21:51:55 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-01-23 23:39:24 +0300
commit0077a845f7e31a6eabafaefc99540903b65439d4 (patch)
treec7efc95fec475348b002cbe185a23e08ba319276 /include/linux/pci-epc.h
parentaa008206634363ef800fbd5f0262016c9ff81dea (diff)
downloadlinux-0077a845f7e31a6eabafaefc99540903b65439d4.tar.xz
PCI: Expose ari_enabled in sysfs
Some multifunction PCI devices with more than 8 functions use "alternative routing-ID interpretation" (ARI), which means the 8-bit device/function number field will be interpreted as 8 bits specifying the function number (the device number is 0 implicitly), rather than the upper 5 bits specifying the device number and the lower 3 bits specifying the function number. The kernel can enable and use this. Expose in a sysfs attribute whether the kernel has enabled ARI, so that a program in userspace won't have to parse PCI devices and PCI configuration space to figure out if it is enabled. This will allow better predictable network naming using PCI function numbers without using PCI bus or device numbers, which is desirable because bus and device numbers can change with system configuration but function numbers will not. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci-epc.h')
0 files changed, 0 insertions, 0 deletions