From patchwork Tue Jul 7 09:22:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 234955 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp735663ilg; Tue, 7 Jul 2020 02:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1bWjyrmVP8leM9bJ2m/oxWA2ALGbw5gDbTem7zFv6RXeUg9w/YEBJ6rwgkPA/FAHYOo0N X-Received: by 2002:a25:84cf:: with SMTP id x15mr76591420ybm.2.1594114036417; Tue, 07 Jul 2020 02:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594114036; cv=none; d=google.com; s=arc-20160816; b=J+reOFENxn0/mgDFonDfXn+g2h6BE+mrKgKYEcUEwfGkAUkc+lCEQ6PjRDStQdrNTd 6iL8CUNqfyFfjL5BKhP8desn8kE1AGT538Vnkhu9FdDci3HGotN7i2eTH6ZfxFRAAN4Z gTIOEt4FniPdu1SDU7xwv5EYrqnVI9fW7GXR7p5OTPOuinwCtv1ZkWoea2ZEJX8DaAB9 kuZwaZVq6RGctT9dw0pCubiasXhq/8HpIKTLe5HwYlEPC0clSBh4YObkSAIYZpJGoRf2 aBHHVc66MgNtB9KnWWO8WIdcB0Gc4gytrDO1x4psz0UXDiG0DPzsAt8FUhLdy0+o59d+ UCwA== 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=hZm4y2u1u6HJBhNx+7w5CV3PhxW/mzlWBdpLmPgizIk=; b=ZQc1PkwnqtN40wQbBufH3fZvneVOI3J7rnU5l2m+YzSGIhbu6ZbCUj/oNBJScikY8X pixvA+/K3IrQuEhYNc97MjdK+vp6ZyjjtYhBL+v3Jm8G3X9kuTLbBfs4WXG+pENg38Bs oQpgnRZV62paMj202knWgKUCToW0zA0aFiWFsfB+HWBgTlDlhVPeSr00K5rApv0SuxAy /k1BhRa7YNkuaIUkAabCejxQG6GEqCil9iHtHRABSMA8mr7alCcTHGUiLimT/znTC6bc gUnmc7afdXJgrCm+e/SefdDdOE1GwEBvqXpcrYBgX5fYcSszFYdaX8tGwVpjKA4/Z7xY 7jIA== 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 t106si21368260ybi.421.2020.07.07.02.27.16; Tue, 07 Jul 2020 02:27:16 -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 ABDB31DC50; Tue, 7 Jul 2020 11:27:01 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 16DB91DC0A for ; Tue, 7 Jul 2020 11:26:59 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E98011A0A54; Tue, 7 Jul 2020 11:26:58 +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 3CC821A0A4E; Tue, 7 Jul 2020 11:26:57 +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 9229B402FA; Tue, 7 Jul 2020 17:26:54 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Gagandeep Singh Date: Tue, 7 Jul 2020 14:52:18 +0530 Message-Id: <20200707092244.12791-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200707092244.12791-1-hemant.agrawal@nxp.com> References: <20200527132326.1382-1-hemant.agrawal@nxp.com> <20200707092244.12791-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 03/29] net/dpaa2: enable timestamp for Rx offload case as well 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: Gagandeep Singh This patch enables the packet timestamping conditionally when Rx offload is enabled for timestamp. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index a1f19194d..8edd4b3cd 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -524,8 +524,10 @@ dpaa2_eth_dev_configure(struct rte_eth_dev *dev) return ret; } +#if !defined(RTE_LIBRTE_IEEE1588) if (rx_offloads & DEV_RX_OFFLOAD_TIMESTAMP) - dpaa2_enable_ts = true; +#endif + dpaa2_enable_ts = true; if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) tx_l3_csum_offload = true;