From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by dpdk.org (Postfix) with ESMTP id 627961B3A4 for ; Thu, 28 Jun 2018 15:16:17 +0200 (CEST) Received: by mail-lf0-f67.google.com with SMTP id g21-v6so4188976lfb.4 for ; Thu, 28 Jun 2018 06:16:17 -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=f6yWG44YI6g9KqH5tp/Dp20sb4gCLsQaNH2i9MGPUmQ=; b=hLiwKBn4O8M0bfmTe5nmxUreByMOSqkMOFT8KYfGUWR2rPBj+WE8Ms9qLDemUTQLr7 +GLGr/moIsEnRMlJV89rpkCveXI7EFuK0QM0Y7Do5xbkYG4azahyqFfHgxj8GdfZp6ge Hvn/dXX6RE4my1NpR1rPZOCoBYigO26/0owp0J5up5ssZzmL6k5ldZiOIUn0DLEH7K91 18mFLlwx40brkW4NiZP4M7stcb3xwFtTGHBqlausrBbb7jtEE/br3Ji9KmgQKdQ5A+uA guwxpviTD7Fanvppy49ruIo5xgAu7Qo0DG0Eb7pzUYgxel54RtyAOhNqC3f7q3PWUXfl Aa0g== 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=f6yWG44YI6g9KqH5tp/Dp20sb4gCLsQaNH2i9MGPUmQ=; b=l+hxKOZ/o5GVFLYOaT1hh2Yywk3DMJnuPlR9AE0V4hiHyJcgtpc/AmTWKSjZuWF+Pm Nq0FoOzA0Y1VmHZvU+//kvG8u6Nxj6fvQjnSvisafK2ACRd4VZ+2tBFcYesGpTKagX0Y lHi3i7wP/IBgXoJWuuz4Ahoa1mVRhtDynqTYtH+mQ+PvCZQbTDh6xlPebyaA7IC+Sdsu lk42Umr4d973mIghx0eod+17BtJXT8FVZmijaNhMGss0qY73Z3rzMuw7APOQ2ISNPYq0 qaOlN5VkGeu+QsiKNkJ7KV5QR8vNIWRY5RDraWcvhHxtT1lHcbig2onlxiAXIeFojSuW FGYg== X-Gm-Message-State: APt69E305NABshdmE0Zjn3K3sHsxp4OoCEp1qMAUXG0BreJqhrplUj6d e5uH6LdO2CUobrZyvAww5VQF4mmDFWj04w== X-Google-Smtp-Source: AAOMgpd1f8ObnfxRO+G/5Dkhw0/39vV4n/gK/sIQLNQwaYuFlHOMiQEgb4G/D1mNtDUG6NyTPIyF9g== X-Received: by 2002:a19:cf95:: with SMTP id f143-v6mr6823207lfg.101.1530191776868; Thu, 28 Jun 2018 06:16:16 -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 o196-v6sm1303246lfe.95.2018.06.28.06.16.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jun 2018 06:16:15 -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, Rafal Kozik Date: Thu, 28 Jun 2018 15:15:53 +0200 Message-Id: <1530191753-18689-5-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530191753-18689-1-git-send-email-rk@semihalf.com> References: <1530191753-18689-1-git-send-email-rk@semihalf.com> Subject: [dpdk-dev] [PATCH v2 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: Thu, 28 Jun 2018 13:16:17 -0000 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