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 C0DC34414E; Tue, 4 Jun 2024 10:51:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB2DB435A7; Tue, 4 Jun 2024 10:49:16 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id 55573435AB for ; Tue, 4 Jun 2024 10:49:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717490954; x=1749026954; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZBEOAGrYvl0NA9SxwZE7QgXXVlbV5RCJjbnaP0cQkQ8=; b=mca4wZb8MXn81U6+u/iK0iI6HPudoXy2qX4ZBiiEO7Pal7nu26SlXG8+ oJ5sHPoPWHT0jtjm8AZpRDQC80ErMXji0lLaPHN8csRtsYlCUo34JLPig NUgamudFLyi/HdfCcMOzjwKnxHZHXFPc+clC1YYc3tJPVtKAnj+1xrkLO cmADdpLsm6z0Mvas7e9apWj7RL0+lx99Kdmb1qlLSoN2ZfPDxi7SM+CVh W2y7EaGf85ZMkBMGbQ6tpeDoRVf4TrJrkYcJLZoPSzz62wHN1ZL54K43j GxkNxcsuGIK1n28l08Jh5EibdXIw4oCl+DiMmhMSWUt4yuLgfIZ/SE8Xd w==; X-CSE-ConnectionGUID: x/dabm7qQGyR1Gf+3JbaHw== X-CSE-MsgGUID: XRCOe4keSIaCcnRBtVdWDA== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="13971732" X-IronPort-AV: E=Sophos;i="6.08,213,1712646000"; d="scan'208";a="13971732" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 01:49:13 -0700 X-CSE-ConnectionGUID: f8CeLQKfRVi8mECYmMe9Yw== X-CSE-MsgGUID: 2fu8808PQKeQT8eknYGFTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,213,1712646000"; d="scan'208";a="42268739" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa004.jf.intel.com with ESMTP; 04 Jun 2024 01:49:11 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, anatoly.burakov@intel.com Cc: dev@dpdk.org Subject: [PATCH v2 19/21] common/idpf: add a new Tx context descriptor structure Date: Tue, 4 Jun 2024 08:06:09 +0000 Message-ID: <20240604080611.2197835-20-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240604080611.2197835-1-soumyadeep.hore@intel.com> References: <20240528072839.867100-1-soumyadeep.hore@intel.com> <20240604080611.2197835-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