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 221E3A0548 for ; Wed, 12 Oct 2022 05:07:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F025340691; Wed, 12 Oct 2022 05:07:03 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 235424067C; Wed, 12 Oct 2022 05:07:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665544022; x=1697080022; h=from:to:cc:subject:date:message-id; bh=rZkeoPS9Cs/P9LtQmLhaQ12qHEU9xabhSunm16Kp8NU=; b=i1Tx2ajJytBiwmjf4rYBrhk7/19JV1UyW0mVR05YAHye/Fhy9K/0JU6w GRH+xMpVPVIboBAUBLp1tLtLwVWHcldRp/W5ajhXmqzVwOev6nPhIWVHS VmG0PUixyX6W2fJM0BiPBp/cbWSQuyfWMVOohKuyqmg+7EGJyS4vl/ULp T+ua2MzsRbWNULMywc67bcefawi7jBiHgaZRe3wjrtoJYYg1/kLV7uEpq cskRGLz1NMAMignau+39SxychzO19OyAMyG9fzCj2w7mOdkFz6KJ3f8z7 2I7QALwMYNj8s5JZCBmCeTbGt/nmDojuEXdOVvKQbc7NibLqPBBS2Nhkd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="368851644" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="368851644" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 20:07:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="604388144" X-IronPort-AV: E=Sophos;i="5.95,177,1661842800"; d="scan'208";a="604388144" Received: from unknown (HELO npg-dpdk-simeisu-cvl-119d218.sh.intel.com) ([10.67.119.208]) by orsmga006.jf.intel.com with ESMTP; 11 Oct 2022 20:06:57 -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: Wed, 12 Oct 2022 10:53:04 +0800 Message-Id: <20221012025304.2708-1-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 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 When starting testpmd without "--enable-rx-timestamp", found the issue that Rx timestamp on Flex descriptor is still enabled. This patch adds per queue offload check to disable Rx timestamp support in default state. Fixes: b5cd735132f6 ("net/iavf: enable Rx timestamp on flex descriptor") Cc: stable@dpdk.org Signed-off-by: Simei Su --- 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