bus/pci: enable write combining during mapping
authorRafal Kozik <rk@semihalf.com>
Fri, 29 Jun 2018 13:54:07 +0000 (15:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Jun 2018 22:12:58 +0000 (00:12 +0200)
commit4a928ef9f6114d119899b95ba47acc0e9562f7a5
treeacde1f63dcda5a260665d94f13012c9e79aedb10
parent1d20a073fa5eb04b9ab4a06ea71b770c17bc35c6
bus/pci: enable write combining during mapping

Write combining (WC) increases NIC performance by making better
utilization of PCI bus, but cannot be used by all PMDs.

It will be enabled only if RTE_PCI_DRV_WC_ACTIVATE will be set in
drivers flags. For proper work also igb_uio driver must be loaded with
wc_activate set to 1.

When mapping PCI resources, firstly check if it support WC
and then try to use it.
In case of failure, it will fallback to normal mode.

Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/bus/pci/linux/pci_uio.c
drivers/bus/pci/rte_bus_pci.h