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 96A66424D8; Wed, 12 Jun 2024 06:38:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FF1540E19; Wed, 12 Jun 2024 06:37:19 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by mails.dpdk.org (Postfix) with ESMTP id EE59A40DDA for ; Wed, 12 Jun 2024 06:37:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718167038; x=1749703038; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZBEOAGrYvl0NA9SxwZE7QgXXVlbV5RCJjbnaP0cQkQ8=; b=Q7GhpwhacX73+Vy3VMEqU4qaIfGyAoh1TcQ+ZcgsK7fHeJvjM42rgwJ1 ivFloTFVSygR1vnPH/LdSDiAKV7qpY3XPs5JZdNdSkdgx4WEb23vOwflP X7qPfUHGiTA3n5PnAScOdKGWrrXu0TuZNRhjirK/X7PBtkS2rM53ppsO6 Ux2CXdxVfxg9+QUriXkSiwiZmoEzGTb8+GGv/E6Hfzno1I8+AIET1JB0O ltiZwETBVaoAsjHmSvwuLHvuUBV5IFV1gHpBpZXIyYy+sgkPmD8M8EDdd 9vLTZKakzjOVX7PQtLKL38eucBD/rblvBD/c8adI7chZM5ec+RIXKXtK1 w==; X-CSE-ConnectionGUID: szXwGveTRkusGxvCHpo26w== X-CSE-MsgGUID: n2OgNpJSQ3esWKqElqw05Q== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="18742216" X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="18742216" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 21:37:18 -0700 X-CSE-ConnectionGUID: TUZNyPLpRgKYvMC9p88n3g== X-CSE-MsgGUID: tFyXAZuDTimi2QN6/4EjDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="40282009" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa008.jf.intel.com with ESMTP; 11 Jun 2024 21:37:16 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, anatoly.burakov@intel.com Cc: dev@dpdk.org Subject: [PATCH v3 19/22] common/idpf: add a new Tx context descriptor structure Date: Wed, 12 Jun 2024 03:52:54 +0000 Message-ID: <20240612035257.2245824-20-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240612035257.2245824-1-soumyadeep.hore@intel.com> References: <20240604080611.2197835-1-soumyadeep.hore@intel.com> <20240612035257.2245824-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..be27973a33 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