summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorRafal Kozik <rk@semihalf.com>2018-06-29 15:54:08 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-06-30 00:12:58 +0200
commit05e0eee0001cb19671eb7e8d3dd68680a695fea2 (patch)
tree53ce325b6c50551629b81bc728e99bdc11b929a9 /drivers/net/ena
parent4a928ef9f6114d119899b95ba47acc0e9562f7a5 (diff)
downloaddpdk-next-eventdev-05e0eee0001cb19671eb7e8d3dd68680a695fea2.zip
dpdk-next-eventdev-05e0eee0001cb19671eb7e8d3dd68680a695fea2.tar.gz
dpdk-next-eventdev-05e0eee0001cb19671eb7e8d3dd68680a695fea2.tar.xz
net/ena: enable write combining
Write combining (WC) increases NIC performance by making better utilization of PCI bus. ENA PMD may make usage of this feature. To enable it load igb_uio driver with wc_activate set to 1. Signed-off-by: Rafal Kozik <rk@semihalf.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/ena_ethdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 9ae73e3..1870edf 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -2210,7 +2210,8 @@ static int eth_ena_pci_remove(struct rte_pci_device *pci_dev)
static struct rte_pci_driver rte_ena_pmd = {
.id_table = pci_id_ena_map,
- .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,
+ .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC |
+ RTE_PCI_DRV_WC_ACTIVATE,
.probe = eth_ena_pci_probe,
.remove = eth_ena_pci_remove,
};