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 E432A1B4E9 for ; Fri, 29 Jun 2018 15:54:19 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id y127-v6so6854363lfc.8 for ; Fri, 29 Jun 2018 06:54:19 -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=w2DsJL5731Qr7XMfJn3A72u3rF/u81X8mw2acjyT714tLnD2PedIfivjSpF96cMwk7 HDybz/tmK+NGIVMFA7ZO1QkWSmtJWAt2LYNSGP+05gifGu6YZCnjCKbY5RtE6APMrSvZ f0cYj7c/4+xyjUmK8R9ytzqOhSA/sEcjrCoUWOvXHi/+xIgAXJuq0SjvVDU+0dTPjjss V/oriuPb+mNDUJiHeS5TrISpc/LkLc0sMqNL74cmmWubp4nkXT7Zns4lCX36Yy7XAWhB cWFjTE03AZQh9zx7q92rW3O3FvKxQ0CIbC/rmrszB8RtBMBU1phQwBugOyHcJTOeviTS sTtA== 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=NSFFskFx/SvVYFiA3UEE6pd7l6JLzZV5bKYj5E+aKVZpoj2OiSTAxsQqAUa05bjVHR nNENiB/oMQOnz0dL8kqFW0ZcGsqZfcWBfmfWjS2AUJvWhAmkexX2J7aARrJQ9RveIdLv +nL9OCjn5F+otc3pyanMnj6EpfIk+s6vfRQy9MrL76Z0N9qYa4xLi4ksTr289XdasBiC 2MupkRaHBcqd0RXQWfAYRRQw8S/ILz+pwFsaBd4ZGKvJWKj7KkUySAiSdt9dedM4Ih/3 ciAqby4eHj0B6sVpEmbTaUoiI82aYMKIi+UVqrdTYwRiPDXGbn6V/01d6x5swb0t50d0 8mZw== X-Gm-Message-State: APt69E1A9zOATHs+oWUZjjLN30jl+H2jP3WKfzn+J01tdi/fGjdtx0d9 1Mdc8qFc6KFxVe8dUr1HAgWMVyEQGMjJXg== X-Google-Smtp-Source: AAOMgpdwH/Rf7Ch2n/XvGWEQbkrJ1a2YXXmmCpPmtX2K507gb0emnPxFTimB/Q2QxvgJmiG7k2iI6w== X-Received: by 2002:a19:120d:: with SMTP id h13-v6mr10304600lfi.13.1530280459423; Fri, 29 Jun 2018 06:54:19 -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 v136-v6sm114122lfa.10.2018.06.29.06.54.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jun 2018 06:54:18 -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 15:54:08 +0200 Message-Id: <1530280448-12920-5-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530280448-12920-1-git-send-email-rk@semihalf.com> References: <1530267873-7236-2-git-send-email-rk@semihalf.com> <1530280448-12920-1-git-send-email-rk@semihalf.com> Subject: [dpdk-dev] [PATCH v5 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 13:54:20 -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