igb_uio: add write combining option
authorRafal Kozik <rk@semihalf.com>
Fri, 29 Jun 2018 13:54:05 +0000 (15:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Jun 2018 22:12:58 +0000 (00:12 +0200)
commiteeffc9ef70a5c2f88a10233ecddb5ae2d2b5fd38
tree7e82be57a97d9f2da3595b9e95b0b83351468235
parent586e5e7cbffcef81a0c5b46361cdaba0988fe7e5
igb_uio: add write combining option

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

To get internal_addr memory need to be mapped. But as memory could not be
mapped twice: with and without WC it should be skipped for WC. [1]

To do not spoil other drivers that potentially could use internal_addr,
parameter wc_activate adds possibility to skip it for those PMDs,
that do not use it.

[1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf
section 5.3 and 5.4

Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/igb_uio/igb_uio.c