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 D7F6E1B4DE for ; Fri, 29 Jun 2018 12:24:45 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id l16-v6so4143517lfc.13 for ; Fri, 29 Jun 2018 03:24:45 -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=MNcxy2No8p407pe8rCDyzm98Z1gJZGrITLF9l2KskORRQdDgI/jPK8b5wTaCR6DAMw 5WZ79ph0SWPBhkn8+WiYzQagGldCmojcoO86ZnnW7e7vQKUDEmQVTN1xHwKsAqvpbFzY 7rG36iB31kiwjgRGpCy/ZO/kHqTWC5y8hWYlh/LTMoIevvWOkrm/YNaGAcO7AXZufidB gu5UcWiO/Q6LOTchWZhS5w/Nyj8EMSpmhiqZ1EvVvrDpAEA0c80eH+hvodY0omZDXLO2 bcgjxlAIRtcoOGMkPGcONy8g8i4yvRa2HVyPTaInA9zuZqXMSnEAPpQymVGmDohOYF7j t5Ww== 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=YTL7gnVR0sybINx2s76g6P80NrE2DNYTqCbKsHPDbOdQOkB8t946LFJ3Gx1jDaolse 1iGZDPRJgrmPMldaRQmoLH+cesP6OIOlfpM5/FXf+FWVi0WrlQL+DkUihGpCNB5cyWIU Wb6ylYTsqmJ0JyiTvlgO7lTpmoqAp+k36vih4RYH6Fi9ooyls2t3JW/m39oMQ6ZvrQH1 b/8ahH/QBdZTqfILEqhUw1aJTH+zjI+2JSLF5nScTsm3uF/GVwqbExWJtWx4F5qnfNlq OD2m4FWjU/JPKRHNThqq7xxqt/CW096UVWyRIw576xzUsWrwBGMNkvJfjaunojiWt1JU tfMQ== X-Gm-Message-State: APt69E2fln/0rQ3G9SIpryaCDwGi68Nt8gAQhgaWunodTM/yvLxu5uC7 zGUjogxacv3YKSus+bzwHzXuWobIgGdsjA== X-Google-Smtp-Source: AAOMgpdjYIQUYGrrxG35hczBXHiEmAl1YLUam0r6ebKzn1VaGKd6VmCZ7as2rRpdodWLjh7oLLYHmg== X-Received: by 2002:a19:29c7:: with SMTP id p190-v6mr9846218lfp.146.1530267885386; Fri, 29 Jun 2018 03:24:45 -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 d79-v6sm745514ljd.50.2018.06.29.03.24.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jun 2018 03:24:44 -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: Fri, 29 Jun 2018 12:24:33 +0200 Message-Id: <1530267873-7236-5-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530267873-7236-1-git-send-email-rk@semihalf.com> References: <1530191753-18689-2-git-send-email-rk@semihalf.com> <1530267873-7236-1-git-send-email-rk@semihalf.com> Subject: [dpdk-dev] [PATCH v3 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 10:24:46 -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