From patchwork Tue Aug 27 07:07:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Saxena X-Patchwork-Id: 172260 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5397924ily; Tue, 27 Aug 2019 00:11:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuRpMU4hjpHdYodjZaWDjSJz4a2StdA7uSZZ5HiceQBueKMJw+7TSkYHaz5QDQzeji9ZSQ X-Received: by 2002:a17:907:4362:: with SMTP id nd2mr19782573ejb.29.1566889871992; Tue, 27 Aug 2019 00:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566889871; cv=none; d=google.com; s=arc-20160816; b=Td6vI9mgjcD8zYlk0iIHKfdXnocV2pZ2WhZc2wnF/jXNY8NgV5ky/YzGoeDZAGfxB9 F+W0/8Tlfl2EnOFIe2jgvs8Ibxr6go8gd5LFGgSrgD8AsZ2yfKLWzcnVhI+f+5IKGEUX B6xRIhUuA1Q+avJ1MLQYIiwXTfFq3ti9bx9fHGW4YycvD3Li7857RWm7Q/YI1+XE+0wc O4ZExfLUJuUUfmlPdrYH9h0w5+59S+PEHB31YoPwlnlFzfzJAb0rsrLdrt5ObZTDid4e b6uS9tSNuy4nogQJPlOtMlFhJFkMGPjytX9tbLrY8yoebsvb2DX51P0EjBs6sLXVKwuu yqOg== 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=nnNDeQmjTqf2d21sEMKM97QRX9F2bHbqe1Y785j0Rx8=; b=t3/mQwnl1CcYFvHnc52/9VGqi0kRJ1A3PWroJtYXCCEksBRFftkY3XvmwBaxO/FAyU Z01U32xhCYeYTu3OpR/Ehggo8WkawNmsZc8YthcRX6UW5FYfSZPMl4YzPOnp3mhOvuCp VYxlU0ceCw5rSVbDS24nFQbf9PXcquBhOOgjtUUUHLRo91T4ohGL0GPtzvxHBZ9spKxW nphUOPjRr2Tn0UP+2mbyS44UMPfflyxeVkSdmZJnSx7W+CtFrBTUehlXfhjUiVs/Qh/y zV8osNV/VfTDvcRmV80wA1NxB51pZUkCB9O3IKvjor6O2i99ZmtmlTtZHxJXGYC+hT0i 6ILg== 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 h47si8236815eda.243.2019.08.27.00.11.11; Tue, 27 Aug 2019 00:11:11 -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 4CE9F1C0CD; Tue, 27 Aug 2019 09:09:48 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 3FB7F1BFBF for ; Tue, 27 Aug 2019 09:09:22 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 22B4C1A01F4; Tue, 27 Aug 2019 09:09:22 +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 20B141A0211; Tue, 27 Aug 2019 09:09:20 +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 0EA57402EB; Tue, 27 Aug 2019 15:09:16 +0800 (SGT) From: Sachin Saxena To: dev@dpdk.org Cc: thomas@monjalon.net, Hemant Agrawal Date: Tue, 27 Aug 2019 12:37:12 +0530 Message-Id: <20190827070730.11206-13-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 12/30] net/dpaa2: realign Rx offload support types 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 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index bbebb66fe..130fb5297 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -32,11 +32,11 @@ /* Supported Rx offloads */ static uint64_t dev_rx_offloads_sup = - DEV_RX_OFFLOAD_VLAN_STRIP | - DEV_RX_OFFLOAD_IPV4_CKSUM | - DEV_RX_OFFLOAD_UDP_CKSUM | - DEV_RX_OFFLOAD_TCP_CKSUM | + DEV_RX_OFFLOAD_CHECKSUM | + DEV_RX_OFFLOAD_SCTP_CKSUM | DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | + DEV_RX_OFFLOAD_OUTER_UDP_CKSUM | + DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER | DEV_RX_OFFLOAD_JUMBO_FRAME; @@ -51,13 +51,13 @@ static uint64_t dev_tx_offloads_sup = DEV_TX_OFFLOAD_UDP_CKSUM | DEV_TX_OFFLOAD_TCP_CKSUM | DEV_TX_OFFLOAD_SCTP_CKSUM | - DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM; + DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM | + DEV_TX_OFFLOAD_MT_LOCKFREE | + DEV_TX_OFFLOAD_MBUF_FAST_FREE; /* Tx offloads which cannot be disabled */ static uint64_t dev_tx_offloads_nodis = - DEV_TX_OFFLOAD_MULTI_SEGS | - DEV_TX_OFFLOAD_MT_LOCKFREE | - DEV_TX_OFFLOAD_MBUF_FAST_FREE; + DEV_TX_OFFLOAD_MULTI_SEGS; /* enable timestamp in mbuf */ enum pmd_dpaa2_ts dpaa2_enable_ts; @@ -439,7 +439,8 @@ dpaa2_eth_dev_configure(struct rte_eth_dev *dev) rx_l3_csum_offload = true; if ((rx_offloads & DEV_RX_OFFLOAD_UDP_CKSUM) || - (rx_offloads & DEV_RX_OFFLOAD_TCP_CKSUM)) + (rx_offloads & DEV_RX_OFFLOAD_TCP_CKSUM) || + (rx_offloads & DEV_RX_OFFLOAD_SCTP_CKSUM)) rx_l4_csum_offload = true; ret = dpni_set_offload(dpni, CMD_PRI_LOW, priv->token,