From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (unknown [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CD6A460A7; Fri, 17 Jan 2025 11:56:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 231E942D66; Fri, 17 Jan 2025 11:55:53 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id 5431A42831 for ; Fri, 17 Jan 2025 11:55:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737111351; x=1768647351; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UOpdkzB64+YrYrrUh7K4oHKmyo31tnOMI7ICsoVrvoY=; b=Q2tRcRTL8p1lj1L+xoIaHDPcbiKwJ+2oquxYTpVoOG8oFzL7nla1e2l6 hDmFzxCKzL9abd4GYn7zEsJgiEnYhqtGdFuQ4cVwELGAlm75HxMXKcOpp 6Uj3gkXI8D8KfDvoKEkX4fT0G6+5cDKuXUbhUDQVY6VcSBCF6G8zyqzRr 0IXlWbvMO1U1oIiI415O4OBnJ1OUiG2H7dmM1HDkS6tKU+YxdeFfFVCRh U7KRqK9bA9xzncaGzIhSt6f9Adi/LzhGjtCiNd33EeGpRDbciETSinbV9 PWwCauBMtV/2oZuY5oSNZ88JoHq68HkIvV3seNsOedgZNqymNkKJtYYk8 g==; X-CSE-ConnectionGUID: c57cFL7eRnKiozPnVGpUhQ== X-CSE-MsgGUID: HKUonxW2RoiLyFFojrqjug== X-IronPort-AV: E=McAfee;i="6700,10204,11317"; a="48537958" X-IronPort-AV: E=Sophos;i="6.13,212,1732608000"; d="scan'208";a="48537958" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2025 02:55:51 -0800 X-CSE-ConnectionGUID: 9xFVKSRCRLKu+UZ0AXku6w== X-CSE-MsgGUID: YP2E93H3SYyC+x2Dyqa7aA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="110774829" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa003.jf.intel.com with ESMTP; 17 Jan 2025 02:55:49 -0800 From: Soumyadeep Hore To: bruce.richardson@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, Paul Greenwalt Subject: [PATCH v1 1/2] net/ice: add tstamp descriptor Date: Fri, 17 Jan 2025 09:39:37 +0000 Message-ID: <20250117093938.1184042-2-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250117093938.1184042-1-soumyadeep.hore@intel.com> References: <20250117093938.1184042-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Paul Greenwalt The Tx packet pacing (TXPP) tstamp queue descriptor is a 32bit format. - Tx queue descriptor ring index, bits 12:0 - Time Stamp, bits 31:13 Add struct ice_ts_desc to hold the 32bit descriptor. Signed-off-by: Paul Greenwalt Signed-off-by: Soumyadeep Hore --- drivers/net/ice/base/ice_lan_tx_rx.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ice/base/ice_lan_tx_rx.h b/drivers/net/ice/base/ice_lan_tx_rx.h index 209b8e5c43..bcc6e9a716 100644 --- a/drivers/net/ice/base/ice_lan_tx_rx.h +++ b/drivers/net/ice/base/ice_lan_tx_rx.h @@ -1269,6 +1269,12 @@ struct ice_tx_drbell_q_ctx { }; #pragma pack() +/* Tx time stamp descriptor */ +struct ice_ts_desc { + __le32 tx_desc_idx_tstamp; +}; +#define ICE_TS_DESC(R, i) (&(((struct ice_ts_desc *)((R)->desc))[i])) + /* The ice_ptype_lkup table is used to convert from the 10-bit ptype in the * hardware to a bit-field that can be used by SW to more easily determine the * packet type. -- 2.43.0