From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id A49D11BB9C for ; Wed, 11 Apr 2018 16:07:44 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id i3so4037763wmf.3 for ; Wed, 11 Apr 2018 07:07:44 -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=H3D0CmynrFz52YO1EjTIITAlSlhkqxRzQbkKdplwzOw=; b=NN/C/xwAQhKCGE/+S6mdos+JJEv58DxWTGmj2Vad0W3459EIQNUoNg24hIWovl2was HEFjLXSmh7+FiqAOHs2xE2T7yRkzTbmsX0fGatc1eRC7xQn8Bbuuy+omx/SJWLKIEKRL qFY0Ayx8lE1c1S3Hs+WNhgS5CATArnHWtb7aW34AQ/OtNMyHI5GPFJaTnE1Lg4xoZVw6 VxShFq3unNqCvq/hv0pTSJM2eqMNsjHZ9pbeKZ+ouf1HFxHbdCvIbJSVhU6ji0INqOns RHKKFc8JW1MaM4HKjbvCDAKGK7yurWLwo4/MIVhB2bb66UYFNwoTyh7dZQVKHEpNsUaV NWlQ== 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=H3D0CmynrFz52YO1EjTIITAlSlhkqxRzQbkKdplwzOw=; b=LFNiklBlmTg6EqhxO5mdWi9F58dkAXdrx/4y13OnradTuh7v9H9/jzj/FrIzZ8O2gM T7J2nK05Xrb4PXmuByg9x6sQcqS5tXpNaqB4N7E4tVnv/Ja+Td4mJIwMl3/AfgVZuUjP hc2p1Kjt1Mbfn2iLkXHTICHByKL5iJpy1qA9CXDznupUYuHkvutzvB2jlCneU9MebKhw p713RbIDhigt7azjXxmU39PBwi6dMPeHCRxU8JoDe1wdRDYsVo7QohWgStXj9nF5V4Yr ryV92g7NGPHbFiqzeC7wSFJ+vddF8L63h4VFNmRXWrakldeHuKSKW3ScFFDVqewCko46 39qQ== X-Gm-Message-State: ALQs6tCSDP0Li1nxQvF48zap3pgpGo3GfWh2auofwW6b1cKhS+bGuhmY xJnqB5Z3+Pih0rscF4alITbKrY6RohJY6w== X-Google-Smtp-Source: AIpwx49YYt8QU43QY6aESLhPQ3X/ANTjVgzzf73uBuOAUgr4iB0GrpK0lb9qkT6S+RR/bXkQj0JiLg== X-Received: by 10.28.54.88 with SMTP id d85mr2984674wma.2.1523455664100; Wed, 11 Apr 2018 07:07:44 -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 6sm1607761wmf.31.2018.04.11.07.07.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 07:07:43 -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, ferruh.yigit@intel.com, Rafal Kozik Date: Wed, 11 Apr 2018 16:07:17 +0200 Message-Id: <1523455637-31719-5-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523455637-31719-1-git-send-email-rk@semihalf.com> References: <1523455637-31719-1-git-send-email-rk@semihalf.com> Subject: [dpdk-dev] [PATCH 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: Wed, 11 Apr 2018 14:07:45 -0000 Write combining (wc) increase NIC performenca by making better utilization of PCI bus. ENA support this feature. To enable it load igb driver with wc_activate set to 1. Signed-off-by: Rafal Kozik --- 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 34b2a8d..415d89d 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1889,7 +1889,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, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING | + RTE_PCI_DRV_WC_ACTIVATE, .probe = eth_ena_pci_probe, .remove = eth_ena_pci_remove, }; -- 2.7.4