From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3B29DA00C3 for ; Thu, 13 Oct 2022 04:02:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E1F242CD1; Thu, 13 Oct 2022 04:02:11 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id E52E342C27; Thu, 13 Oct 2022 04:02:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665626528; x=1697162528; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=8NteFtZs8K3kKYoXkHNQGMdCMizg32FPLKdqH3YvQJw=; b=VAQCR5shHBDvbWSDyDj3R9/IjYteCMsS7N82CTaj+kbp2mKqr/Gohh7I /a4VZgY3PdsUvr4vbUMpLjM32BMApFEE3DlJi0i2KvIjq07xAYFiv1NBp 29cykaommDrIJXPcS5978jL1+ltZhw8bgCjvrQcrjv3pLGK12qKSnlqlW SZEMCa8rQ6iCnAYEnxYTrY47fK+YDami3dQOyauG2sCNVvi36f4Wpb9Zf pnW8siYlvZ9aIp567PDfcQQRu6OZpr10jUScT6edw5cZCA+kdWdjcxo5M fMZeVfnXRCw5zgAv+hDEY2Sox9EBXLuohP53MF+HoZNj4R1W3AVEf3n6S Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="302569099" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="302569099" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2022 19:02:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="752342143" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="752342143" Received: from unknown (HELO npg-dpdk-simeisu-cvl-119d218.sh.intel.com) ([10.67.119.208]) by orsmga004.jf.intel.com with ESMTP; 12 Oct 2022 19:01:55 -0700 From: Simei Su To: qi.z.zhang@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, wenjun1.wu@intel.com, Simei Su , stable@dpdk.org Subject: [PATCH] net/iavf: fix default state for Rx timestamp enabling Date: Thu, 13 Oct 2022 09:47:56 +0800 Message-Id: <20221013014756.61591-1-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20221012025304.2708-1-simei.su@intel.com> References: <20221012025304.2708-1-simei.su@intel.com> X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This patch adds per queue offload check to turn off Rx timestamp offload by default. Fixes: b5cd735132f6 ("net/iavf: enable Rx timestamp on flex descriptor") Cc: stable@dpdk.org Signed-off-by: Simei Su v2: * Refine commit log. --- drivers/net/iavf/iavf_vchnl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 4327c5a..729400c 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/drivers/net/iavf/iavf_vchnl.c @@ -1070,7 +1070,8 @@ iavf_configure_queues(struct iavf_adapter *adapter, } if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_CAP_PTP && - vf->ptp_caps & VIRTCHNL_1588_PTP_CAP_RX_TSTAMP) + vf->ptp_caps & VIRTCHNL_1588_PTP_CAP_RX_TSTAMP && + rxq[i]->offloads & RTE_ETH_RX_OFFLOAD_TIMESTAMP) vc_qp->rxq.flags |= VIRTCHNL_PTP_RX_TSTAMP; } #else -- 2.9.5