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 79D04458CD; Mon, 2 Sep 2024 11:57:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 616A440B92; Mon, 2 Sep 2024 11:55:38 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id 5E1C04065C for ; Mon, 2 Sep 2024 11:55:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725270916; x=1756806916; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oRE10zMiloZxY9aPS/yZF0gCOOT2lksGfhviMhbjuQU=; b=UvoY2uY1qy3t48yQVnqBOG7dIeP8pJ4iaiEccjyA/GYAPEYJqAae0aeI 5O7xR8jqLkrvH6i5bbtY7QHCu95vXwt361a8aE+5zYCrzblH23VrhFHHX J1pakc/zjYz4a6pzp1nkXnZlihtOZyScgLbEu9uPsmsD2CCaMuXJJeXEl ZZE9hDxxcV0l1gX2+fjhrzK4ccTgRc61RU1oAw/wa6W4AtyNa1AVZOxat Z6GPCmD2VweCc1xIZ1E2G99JDLdpQYVI6CetrgChd0rUSBHUZ4Ah3u3qm DC4aAl3IyvyEVpggqh7qusZJ1gqJSlXqvacGq3pLn5XzeCk/esNe/V4TP w==; X-CSE-ConnectionGUID: gH7lncmuSX2aid7jFf3xOQ== X-CSE-MsgGUID: RVdFuma4S0KZszQLg+61dw== X-IronPort-AV: E=McAfee;i="6700,10204,11182"; a="26747224" X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="26747224" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 02:55:15 -0700 X-CSE-ConnectionGUID: 2IwB0xTyRXe6MiDR/sUmlA== X-CSE-MsgGUID: FHX2D4NbSaq+mBS0SCRc6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="64597945" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa009.fm.intel.com with ESMTP; 02 Sep 2024 02:55:15 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: bruce.richardson@intel.com Subject: [PATCH v1 18/30] net/i40e/base: add named and raw structs to rx desc Date: Mon, 2 Sep 2024 10:54:30 +0100 Message-ID: X-Mailer: git-send-email 2.43.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Björn Töpel Add i40e_16b_rx_wb_qw0 and raw structs to i40e_16byte_rx_desc, to allow access both as 16-byte descriptor, and as raw data. Signed-off-by: Björn Töpel Signed-off-by: Michal Jaron Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index fe47f00ec9..83cf701fb4 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e/base/i40e_type.h @@ -775,7 +775,7 @@ union i40e_16byte_rx_desc { __le64 hdr_addr; /* Header buffer address */ } read; struct { - struct { + struct i40e_16b_rx_wb_qw0 { struct { union { __le16 mirroring_status; @@ -794,6 +794,9 @@ union i40e_16byte_rx_desc { __le64 status_error_len; } qword1; } wb; /* writeback */ + struct { + u64 qword[2]; + } raw; }; union i40e_32byte_rx_desc { -- 2.43.5