From patchwork Tue Aug 27 07:07:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Saxena X-Patchwork-Id: 172249 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5396156ily; Tue, 27 Aug 2019 00:09:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpF2uBFS+Aec62ri9Qgj9g00YE62GWR5/wZxGjDLTT9fWjT9ysizEiIF4UjJUFHS6hGnbM X-Received: by 2002:a05:6402:170f:: with SMTP id y15mr23382285edu.55.1566889764740; Tue, 27 Aug 2019 00:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566889764; cv=none; d=google.com; s=arc-20160816; b=H2cA1Z2/CDnmN7bvD8W5CgId7VxKytljZ5silraQGFu0gL/23RUpfOo5ygJF1h1/VZ lPtN2YLMoF3AxYTiNrzmFInC6ntG/uWDklIkmgUC1URsd3rkmeba7kuQ6Q5R43/wuG2L MNF0NxwZaLlTynf1nUgScE3AkK5/AdUGb1wfNKniO4zvoFmTYKqHzVF1jmJRGJzj3tEE Ad0aqRe00+UXYjI5Bvqgj+Gl8sWdt+5Q67IBbuDY0Pao+jD0namVn+BgGhQnNeakbOsC iJoA8sD7dFv3G0qUrLfidngLpGElLieKBeYZvSGRJMKVHZjUryJzjWNioyHHvvLVbJr5 WoOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=QHb3EC6meRr3vE1PotUlGzqxaBR93YfK8/9Etjh/Ir8=; b=dseFgZhv5KrgbAGKz/MmIR+EDthLOg4ngBv7tBbryK7yT+cR8jRXIDeR+NauMuGpp0 AC1jfzVO54miF1lAfCuJSUF82DzdBNJF6HrKWVSc1XngvYmBZZZAtpT0WOHlTPLcbfKk lFLFGN3YcFt0DpRJh0LwJzf8eX0cxyReq4hiHPhivP9xNVUTIjcK3+HKX1q4+DoF+1As tm4k2thu7u4NN61jyp/IM/z5idpF9zUAYIVBzfaMIXs7YpdSuzaMN54yT6jrBAPs2KsY GVHIrXhzyIWuklbn7YtuktTBK9XKgubbb3eCND1w+8Z6HITk1FscJ36lEHb0XebiDAIs Rn/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id o7si7110964ejr.13.2019.08.27.00.09.24; Tue, 27 Aug 2019 00:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09ED31BF7E; Tue, 27 Aug 2019 09:09:17 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 74DC71BF7B for ; Tue, 27 Aug 2019 09:09:15 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DA2131A05A1; Tue, 27 Aug 2019 09:09:14 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D7B1B1A021C; Tue, 27 Aug 2019 09:09:12 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5A6CB402E7; Tue, 27 Aug 2019 15:09:09 +0800 (SGT) From: Sachin Saxena To: dev@dpdk.org Cc: thomas@monjalon.net, Hemant Agrawal Date: Tue, 27 Aug 2019 12:37:02 +0530 Message-Id: <20190827070730.11206-3-sachin.saxena@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190827070730.11206-1-sachin.saxena@nxp.com> References: <20190827070730.11206-1-sachin.saxena@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v1 02/30] net/dpaa: improve the Rx offload debug message 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal This patch also align few RX offload support to right category. Signed-off-by: Hemant Agrawal Reviewed-by: Sachin Saxena --- drivers/net/dpaa/dpaa_ethdev.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 7154fb9b4..7f5a8ac3b 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -59,7 +59,9 @@ static uint64_t dev_rx_offloads_nodis = DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM; /* Supported Tx offloads */ -static uint64_t dev_tx_offloads_sup; +static uint64_t dev_tx_offloads_sup = + DEV_TX_OFFLOAD_MT_LOCKFREE | + DEV_TX_OFFLOAD_MBUF_FAST_FREE; /* Tx offloads which cannot be disabled */ static uint64_t dev_tx_offloads_nodis = @@ -68,9 +70,7 @@ static uint64_t dev_tx_offloads_nodis = DEV_TX_OFFLOAD_TCP_CKSUM | DEV_TX_OFFLOAD_SCTP_CKSUM | DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM | - DEV_TX_OFFLOAD_MULTI_SEGS | - DEV_TX_OFFLOAD_MT_LOCKFREE | - DEV_TX_OFFLOAD_MBUF_FAST_FREE; + DEV_TX_OFFLOAD_MULTI_SEGS; /* Keep track of whether QMAN and BMAN have been globally initialized */ static int is_global_init; @@ -196,20 +196,20 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev) PMD_INIT_FUNC_TRACE(); - /* Rx offloads validation */ + /* Rx offloads which are enabled by default */ if (dev_rx_offloads_nodis & ~rx_offloads) { - DPAA_PMD_WARN( - "Rx offloads non configurable - requested 0x%" PRIx64 - " ignored 0x%" PRIx64, - rx_offloads, dev_rx_offloads_nodis); + DPAA_PMD_INFO( + "Some of rx offloads enabled by default - requested 0x%" PRIx64 + " fixed are 0x%" PRIx64, + rx_offloads, dev_rx_offloads_nodis); } - /* Tx offloads validation */ + /* Tx offloads which are enabled by default */ if (dev_tx_offloads_nodis & ~tx_offloads) { - DPAA_PMD_WARN( - "Tx offloads non configurable - requested 0x%" PRIx64 - " ignored 0x%" PRIx64, - tx_offloads, dev_tx_offloads_nodis); + DPAA_PMD_INFO( + "Some of tx offloads enabled by default - requested 0x%" PRIx64 + " fixed are 0x%" PRIx64, + tx_offloads, dev_tx_offloads_nodis); } if (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) {