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 A1FC3440F2; Tue, 28 May 2024 10:18:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D40940DF6; Tue, 28 May 2024 10:17:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id F1D7B40A8B for ; Tue, 28 May 2024 10:17:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716884251; x=1748420251; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=H29LHKEMXLgb+ti+ArtPrggRIe28+74DeqOABggplRU=; b=LhutMOR9Rf7nu5fyR74rtqsSPjhvyCXdtkerXYjjUJkZ5oqwGLMdt4TA S6qGnLy2+FY4ycwlcQhg2YktHLYZ6KdBDay1y3eSU6xvJirxfn9KFIovf 7oTiyvbDt+4yeZ4MNYPnCV1nTNabhlRRiZzIFFAd6449sBbAV1/ov+29i ugHE5nhhY5ZaFmMiZg0npZ1iN6diBhUPAxo4rL9gUy2d2tpCxi/o7qO9L ZuvG/nOQADBANhf5At5vW5WX9ORji22U66DrV9QZLJLaQMl2Q3zmkvCrQ c/qwdbyMfZ5R3RQhzfKOQ2Iq+9p0eoGkZsToXhxuU73wtqmAkDcww0O+7 A==; X-CSE-ConnectionGUID: 53PVxaQ3SLC2G9osn8mw5A== X-CSE-MsgGUID: Uo9lxZssSV6YWntyafusfQ== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="35728412" X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="35728412" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 01:17:30 -0700 X-CSE-ConnectionGUID: TB65LNOXSnGnbjcigWUo+Q== X-CSE-MsgGUID: KBlT+CGqS4W+E9/dSytBtA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="34976594" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa008.fm.intel.com with ESMTP; 28 May 2024 01:17:29 -0700 From: Soumyadeep Hore To: jingjing.wu@intel.com Cc: dev@dpdk.org Subject: [PATCH 16/25] common/idpf: add a new Tx context descriptor structure Date: Tue, 28 May 2024 07:35:56 +0000 Message-ID: <20240528073559.867121-7-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240528073559.867121-1-soumyadeep.hore@intel.com> References: <20240528073559.867121-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 Adding a new structure for the context descriptor that contains the support for timesync packets, where the index for timestamping is set. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_lan_txrx.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/idpf_lan_txrx.h b/drivers/common/idpf/base/idpf_lan_txrx.h index c9eaeb5d3f..8b14ee9bf3 100644 --- a/drivers/common/idpf/base/idpf_lan_txrx.h +++ b/drivers/common/idpf/base/idpf_lan_txrx.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2001-2023 Intel Corporation + * Copyright(c) 2001-2024 Intel Corporation */ #ifndef _IDPF_LAN_TXRX_H_ @@ -286,6 +286,24 @@ struct idpf_flex_tx_tso_ctx_qw { }; union idpf_flex_tx_ctx_desc { + /* DTYPE = IDPF_TX_DESC_DTYPE_CTX (0x01) */ + struct { + struct { + u8 rsv[4]; + __le16 l2tag2; + u8 rsv_2[2]; + } qw0; + struct { + __le16 cmd_dtype; + __le16 tsyn_reg_l; +#define IDPF_TX_DESC_CTX_TSYN_L_M GENMASK(15, 14) + __le16 tsyn_reg_h; +#define IDPF_TX_DESC_CTX_TSYN_H_M GENMASK(15, 0) + __le16 mss; +#define IDPF_TX_DESC_CTX_MSS_M GENMASK(14, 2) + } qw1; + } tsyn; + /* DTYPE = IDPF_TX_DESC_DTYPE_FLEX_TSO_CTX (0x05) */ struct { struct idpf_flex_tx_tso_ctx_qw qw0; -- 2.43.0