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 5421343011; Wed, 9 Aug 2023 03:34:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 086A643274; Wed, 9 Aug 2023 03:33:43 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id F088A43273 for ; Wed, 9 Aug 2023 03:33:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691544821; x=1723080821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oeKc1PZCZY6SLiiJeUZpb52XDoUwTODKMH+oohYH9EE=; b=UKs8ajZMT5r6A8LL2Bk0QKepS9mAXqgen0JkiVTLaZYYbGS7+pWKA1Uq uMH5czbLHv0Q2D+6mmRQH9eA0UvSdaJKNBNI/8uSo0VRxJg/EhrRJPQcR zdn5M0CuLhPVVg6UnthxofDQs26e109wVbC/JMR9HKfNFY+54u9V0Apx4 XGoL/HVIn5YzVrjoAcPJRPhIcxT8m9mo/RaOG4BsYBfxeo+Tr0ztjz7Vo U2wAOWw8AvHplbfFDrvF1jRobzWtj2J/U98VyW88y4m4Gc+dZjR+jS41m /0jl0uj66te0kgoFC4YMyyl2kX8l2YCR5kuRqzrOxMIpJJzQRjM6xSJcM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374704487" X-IronPort-AV: E=Sophos;i="6.01,157,1684825200"; d="scan'208";a="374704487" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 18:33:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="845735114" X-IronPort-AV: E=Sophos;i="6.01,157,1684825200"; d="scan'208";a="845735114" Received: from dpdk-wenjing-02.sh.intel.com ([10.67.119.75]) by fmsmga002.fm.intel.com with ESMTP; 08 Aug 2023 18:33:37 -0700 From: Wenjing Qiao To: jingjing.wu@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org, mingxia.liu@intel.com, wenjing.qiao@intel.com, Simei Su , Alan Brady Subject: [PATCH 07/14] common/idpf/base: add union for SW cookie fields in ctlq msg Date: Wed, 9 Aug 2023 01:33:01 +0000 Message-Id: <20230809013308.1449103-8-wenjing.qiao@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230809013308.1449103-1-wenjing.qiao@intel.com> References: <20230809013308.1449103-1-wenjing.qiao@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: Simei Su Instead of using something like a byte offset, we can add a union to the struct here to enable direct addressing. Signed-off-by: Alan Brady Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/idpf_controlq_api.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.mailmap b/.mailmap index 7400692544..ff96bc7d0e 100644 --- a/.mailmap +++ b/.mailmap @@ -1644,3 +1644,4 @@ Josh Hay Madhu Chittim Shailendra Bhatnagar Julianx Grajkowski +Alan Brady diff --git a/drivers/common/idpf/base/idpf_controlq_api.h b/drivers/common/idpf/base/idpf_controlq_api.h index 3780304256..f4e7b53ac9 100644 --- a/drivers/common/idpf/base/idpf_controlq_api.h +++ b/drivers/common/idpf/base/idpf_controlq_api.h @@ -77,6 +77,11 @@ struct idpf_ctlq_msg { u8 context[IDPF_INDIRECT_CTX_SIZE]; struct idpf_dma_mem *payload; } indirect; + struct { + u32 rsvd; + u16 data; + u16 flags; + } sw_cookie; } ctx; }; -- 2.34.1