From patchwork Thu Aug 29 10:27:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Saxena X-Patchwork-Id: 172564 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2030144ily; Thu, 29 Aug 2019 03:43:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFxlhSIaLMgt41EAwTLVEgGU/ejbogF/s9u2t0UQw7SaLJ2LuVsFI3COya4tnj+/wYqC7W X-Received: by 2002:a50:fc8c:: with SMTP id f12mr9007438edq.191.1567075426853; Thu, 29 Aug 2019 03:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567075426; cv=none; d=google.com; s=arc-20160816; b=k5iUvLYnPXKcdL/OA57Orybag5+Bqnb35qfltY0IXyv+07laaom886PKcQOaT6Jv+2 fKOONfsgiAXahdTJoQGT8WkDNZm4HE/OO6jITlHlRIfXJOA71c7oJFYfxKVU9Zvzf2+W ZoCnGvMyuZ73ohUhOhx5e95bSpspws+MdtI4N+MW3wx41VuujBvdg01C/XxC046dlj9I DDO9fyLx+P0kyFRXEedQXoH7BTtypTU46LhWvz0j2XLW3hYpaGUkzohWYXLOJ69PqUa1 Xapm7GLhQm+thE24J6qCqA9zEcug1eDaT4B5P7VONBDDAOY7URUu7lLrl1uSCdLMY/Qe nzbg== 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=deAB1sqgLpGqQwqIqCeFAPOHuHlA0SR3n+/RUDaVrq0=; b=QhHXfjYA6COnnitRgD+yEuN8LC40NPkU3e279tUVPCj6Z5mFVnUd8YjU29DzZ9pyhA LZHW+MRWVrjlTFjnxP6djHdH5heEuu+CDvobiw4V1ng1H39DGdgiUvJmsKR3F+E0qI93 6fnZ4MLwczISpHLHGBVaEZmSknq+3VpRONvEKLOeyGDkYcZMhxRu3YDxTqk7DHgqGETV dQjAgeeuLKhi6Vy3f291XxM6e2p7lPiMuZZsUiZ90ghiJoxA/CEVse1pEeh3QLvErqni 7Gja690ag95s7d+bGj6e24pb6RiUNZWwpYMTyED+f0DV1WroqpcG11oynZZTbyyfMvZr g/ww== 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 p9si903608ejf.115.2019.08.29.03.43.46; Thu, 29 Aug 2019 03:43:46 -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 025121E550; Thu, 29 Aug 2019 12:42:23 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 3DAB51D42B for ; Thu, 29 Aug 2019 12:41:53 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1FBAF200769; Thu, 29 Aug 2019 12:41:53 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1DE0A200332; Thu, 29 Aug 2019 12:41:51 +0200 (CEST) Received: from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9D8FB402F0; Thu, 29 Aug 2019 18:41:47 +0800 (SGT) From: Sachin Saxena To: dev@dpdk.org Cc: thomas@monjalon.net, Hemant Agrawal Date: Thu, 29 Aug 2019 15:57:20 +0530 Message-Id: <20190829102737.13267-14-sachin.saxena@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190829102737.13267-1-sachin.saxena@nxp.com> References: <20190827070730.11206-1-sachin.saxena@nxp.com> <20190829102737.13267-1-sachin.saxena@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 13/30] net/dpaa2: enable Rx offload for timestamp 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 130fb5297..4689cf9a4 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -38,7 +38,8 @@ static uint64_t dev_rx_offloads_sup = DEV_RX_OFFLOAD_OUTER_UDP_CKSUM | DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER | - DEV_RX_OFFLOAD_JUMBO_FRAME; + DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_TIMESTAMP; /* Rx offloads which cannot be disabled */ static uint64_t dev_rx_offloads_nodis = @@ -457,6 +458,9 @@ dpaa2_eth_dev_configure(struct rte_eth_dev *dev) return ret; } + if (rx_offloads & DEV_RX_OFFLOAD_TIMESTAMP) + dpaa2_enable_ts = true; + if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) tx_l3_csum_offload = true;