From patchwork Mon Oct 25 03:55:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 102722 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E60EEA0C45; Mon, 25 Oct 2021 05:55:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B871D410FF; Mon, 25 Oct 2021 05:55:47 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id EA6704111C for ; Mon, 25 Oct 2021 05:55:45 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19OKj9WI024476 for ; Sun, 24 Oct 2021 20:55:45 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=MhH8Tr5wbaBWBP3d3dNnNTvnWw6RPQXi3fw5Ec+DRLU=; b=IQW2ykP/pf6wLENT9TQ8eJ7G6RLvncYjPukzEP2pRKETy+qrtl20KGYFmQF7wpfn9MoR 5DOjj1z/vyxcJDUAEVYWC1nI+UtwjywsKfCxgk6t2cOoUpgW3TpdlXeUE27zTZvbWrFq D/oUeKZcvbsI7CocE3M+RBYoF7xlqdVIlc+8FQsfsF3/RY3qFOOWKJ8/4MfFDi3/vrLk V1aF4kPA/ctwr6AzUqPbBiqk53hEQmUOP7k84RUgS/yKkrG4BI3I2sGaikSMFg3bJ5Fw opV9fU7ey4foZm5ynfZ+YNX4lgCqK6wj/ddxAN8AZX7pyeuciyW+ZLyYh0O21BEVIFiD FQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3bwdj390fh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 24 Oct 2021 20:55:45 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 24 Oct 2021 20:55:43 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 24 Oct 2021 20:55:43 -0700 Received: from cavium-kiran.marvell.com (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id 739E13F70BB; Sun, 24 Oct 2021 20:55:41 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: Date: Mon, 25 Oct 2021 09:25:26 +0530 Message-ID: <20211025035526.3169168-2-kirankumark@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211025035526.3169168-1-kirankumark@marvell.com> References: <20211025035526.3169168-1-kirankumark@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 5XW4QG_z31YPGwn68sbHKR3X4I5ry7H6 X-Proofpoint-ORIG-GUID: 5XW4QG_z31YPGwn68sbHKR3X4I5ry7H6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-25_01,2021-10-25_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH 2/2] common/cnxk: sync mbox with AF 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 Sender: "dev" From: Kiran Kumar K Sync mbox with AF, And bump up the version. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/roc_mbox.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h index bc40848450..22f6ebcd92 100644 --- a/drivers/common/cnxk/roc_mbox.h +++ b/drivers/common/cnxk/roc_mbox.h @@ -28,7 +28,7 @@ struct mbox_msghdr { #define MBOX_RSP_SIG (0xbeef) /* Signature, for validating corrupted msgs */ uint16_t __io sig; -#define MBOX_VERSION (0x000a) +#define MBOX_VERSION (0x000b) /* Version of msg's structure for this ID */ uint16_t __io ver; /* Offset of next msg within mailbox region */ @@ -283,6 +283,7 @@ struct ready_msg_rsp { }; enum npc_pkind_type { + NPC_RX_CUSTOM_PRE_L2_PKIND = 55ULL, NPC_RX_VLAN_EXDSA_PKIND = 56ULL, NPC_RX_CHLEN24B_PKIND, NPC_RX_CPT_HDR_PKIND, @@ -309,6 +310,15 @@ struct npc_set_pkind { #define PKIND_RX BIT_ULL(1) uint8_t __io dir; uint8_t __io pkind; /* valid only in case custom flag */ + uint8_t __io var_len_off; + /* Offset of custom header length field. + * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND + */ + uint8_t __io var_len_off_mask; /* Mask for length with in offset */ + uint8_t __io shift_dir; + /* Shift direction to get length of the + * header at var_len_off + */ }; /* Structure for requesting resource provisioning.