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 42D9C45955; Tue, 10 Sep 2024 13:10:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0CA142E7F; Tue, 10 Sep 2024 13:09:45 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id 9B50542E6B for ; Tue, 10 Sep 2024 13:09:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725966585; x=1757502585; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iiv1wkdLx9JOX78M5bAXtwn9T+/YwlJB8VtRKvIO+Qs=; b=ZzY3WzbsQbIPlKvTT9HrfNqFD+4a+K0oSNQfBW6mvgq5UxgdwjYsOXgO B6pIgZ6mdQ/AsfRBZBVkjOQwSz3B61zarfV4KrQ0R80BfTF8VZTSgz2Ip xlQAL+cotYuDGGCnPJC4SpeQZr2eVGB5JHw9VMBu/hvCt32x9PGzTlzWe Gvj0YrwskbqnGAGLEL8ZOsP8rgg+sXoUehG1sJsNIq6xhaEnPFFKEVjNL InHaDQtErY4F1rWxLtlfQDn/Ab2Xq0IfJuj27dlNomqPyFdmTN5fAShdf 7umCFFfBiS1gDxOUf2RjoOVNSUjgSMIH5zmzCpmUVcRC0Lag0Us+f0cqP g==; X-CSE-ConnectionGUID: DiYJioTcS92gL2Kn7nZSiQ== X-CSE-MsgGUID: sN0G1uUXSxuXOmZpQ5kCBA== X-IronPort-AV: E=McAfee;i="6700,10204,11190"; a="35276928" X-IronPort-AV: E=Sophos;i="6.10,217,1719903600"; d="scan'208";a="35276928" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 04:09:44 -0700 X-CSE-ConnectionGUID: 6/ZFCkbtQE+bVg/WcdjclQ== X-CSE-MsgGUID: pKYVpgedQ12AH0hZnfyRHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,217,1719903600"; d="scan'208";a="71969853" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa004.jf.intel.com with ESMTP; 10 Sep 2024 04:09:42 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, shaiq.wani@intel.com, Mateusz Polchlopek Subject: [PATCH v1 6/9] common/iavf: add flex descriptor fields enum Date: Tue, 10 Sep 2024 10:12:21 +0000 Message-ID: <20240910101224.497044-7-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240910101224.497044-1-soumyadeep.hore@intel.com> References: <20240910101224.497044-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: Mateusz Polchlopek Flex descriptor has fields like DD, EOP or RXE defined under other addresses than legacy descriptor. This commit introduces enum with bits definitions for flex one. Signed-off-by: Mateusz Polchlopek Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/iavf_type.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf/iavf_type.h index 1cd87587d6..b7d7027b9d 100644 --- a/drivers/common/iavf/iavf_type.h +++ b/drivers/common/iavf/iavf_type.h @@ -474,6 +474,10 @@ enum iavf_rx_desc_status_bits { IAVF_RX_DESC_STATUS_LAST /* this entry must be last!!! */ }; +#define IAVF_RX_FLEX_DESC_STATUS_ERR0_DD_BIT BIT(0) +#define IAVF_RX_FLEX_DESC_STATUS_ERR0_EOP_BIT BIT(1) +#define IAVF_RX_FLEX_DESC_STATUS_ERR0_RXE_BIT BIT(10) + #define IAVF_RXD_QW1_STATUS_SHIFT 0 #define IAVF_RXD_QW1_STATUS_MASK ((BIT(IAVF_RX_DESC_STATUS_LAST) - 1) \ << IAVF_RXD_QW1_STATUS_SHIFT) -- 2.34.1