From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id E18111B5AC for ; Fri, 29 Jun 2018 14:17:29 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id g21-v6so6651952lfb.4 for ; Fri, 29 Jun 2018 05:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AwNrRX1Landx1JIqow4Cyk+bUOdJqBZtnQCgn5pVDtM=; b=AMw/LEw90tAqDe3WGBqax/gd7bLbmkxbnZWAFoVecu8r5NwTHzVQJLBvqmf6ZZH4TF O6szMT1yV2zSs+Wj2lNaSjQOHHrbJHBPmwRAUZfOyvZVAdDzRL8MQn7lGfmJFmzfbKS9 tYXd2T4iGjUASFdYGfhdiqa4zKVe9k3D8vN2waZ2iOro3z+fyCwkdBT7fKL0j8zAZYzY Zoq7fysciiLDwSgsbXCYTsp15WNW02ZyM/yBwtMqKw0kQvgfYGQT79RuwkHuloZ4P8pY YY0x5UzpTFy4BIi04ZoFDiTYiQ8/PFF9yy+zIwQpLkLdd3hsLhJaBPQtjnRzBjYyy6Ve P1HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AwNrRX1Landx1JIqow4Cyk+bUOdJqBZtnQCgn5pVDtM=; b=S5kLg2KlAnKHrY/mSu4itlvdqH1p1y68ol22b4t/JKKeKdK9qjMUY8RyOzJZLD1Hpp 5XNTAPKu96Zzrra3xmsYyJR4Hs2AJWkbXehSEH95m3YDGj4j6YBdBTMOuzufxxf49XGA DSz4/ABNirjoavtLz+kTNzVzdYZhbvi997b12OFec6BehngHDusrud2skgA0L/RTmFiG 6yJ72Vr4h9vO3Hj5LlmPqZ1QXBKB9Y8TYm4rK6X8iotPF29NNFtFRtm+CtgKkYrL9C8B 36Dx1ElayY2xsvmVlKgKE4xtEoNLX1ZAhGNCtqesrbxVvI5R0rcvDUZy1/t3FVm1O/Y0 9VvQ== X-Gm-Message-State: APt69E10NC1sNcHqiZgvluu1njqk/wb5Re2PAZESCX3vS/MDyDcB0Qh9 I0jrbiVIqsTaMyJ/SeI3Qeuunxt0CJ0fLQ== X-Google-Smtp-Source: AAOMgpcYEqYQcwPewSW9De1LtjoDWyLjXNpSrEo5c7qIpC8IyFZzkBt1jZzg4OdHMYniPUKO9Y9PSA== X-Received: by 2002:a19:aac1:: with SMTP id t184-v6mr10245572lfe.65.1530274649395; Fri, 29 Jun 2018 05:17:29 -0700 (PDT) Received: from rafalkozik.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id r21-v6sm1527333lja.92.2018.06.29.05.17.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jun 2018 05:17:28 -0700 (PDT) From: Rafal Kozik To: dev@dpdk.org Cc: mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, matua@amazon.com, igorch@amazon.com, thomas@monjalon.net, ferruh.yigit@intel.com, Kozik Date: Fri, 29 Jun 2018 14:17:17 +0200 Message-Id: <1530274637-10156-5-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530274637-10156-1-git-send-email-rk@semihalf.com> References: <1530267873-7236-2-git-send-email-rk@semihalf.com> <1530274637-10156-1-git-send-email-rk@semihalf.com> Subject: [dpdk-dev] [PATCH v4 4/4] net/ena: enable WC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 12:17:30 -0000 From: Kozik 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 Acked-by: Bruce Richardson --- drivers/net/ena/ena_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }; -- 2.7.4