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 28B69A0547; Fri, 29 Oct 2021 16:15:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16B9741229; Fri, 29 Oct 2021 16:15:41 +0200 (CEST) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by mails.dpdk.org (Postfix) with ESMTP id ADC8C41143 for ; Fri, 29 Oct 2021 16:15:40 +0200 (CEST) Received: by mail-io1-f49.google.com with SMTP id e144so12701993iof.3 for ; Fri, 29 Oct 2021 07:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=00BcyU+Kf+CyPqA4JBdqgDG0hZ5kXDQNwWIVFKiG6nY=; b=XAOAojovFpN4UhcJSZxhKs7OWFZ7KxIdNQLnM+w7rCD5ERGEP3jNSjLwNSsH/dYoNb fBElpvJh3G9ohbD/GuJ/zTcVWa14IVaJV0t+6o6xdnVeRtIx/mB9LXqoH6KZ+/vUU8Ld Xy0ugVH6ssjAXu015BbIRo2oKWdzx8YdBNRZNGlHzyuhxCXooSS+bDjmmagiMmKG/3h9 EMRWKvPu8zor0HvIm6b03kvlu9u3HfyogajVgJjskO6eSV8R7jNiBthVrX96TGgOssE1 unzivnJQvj7AH/R3BBuybyhwH5LQPyvc76kGpWTrB+//DJUbrJhofJabkzYXHaYg+Hv4 txFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=00BcyU+Kf+CyPqA4JBdqgDG0hZ5kXDQNwWIVFKiG6nY=; b=Pa/flabx73j/AvGYqYG097riB5hDMbXJ++LzyYusb4jN4CUvhDa0YSXQvJ/jpnvklC mAyU0qlOgc8TEDF5D5QCyTBihvbmh6QnwldlpcewykTfhRoiuoqVFIuwx/g1nIk1weHA i3mENOyfmRVYHIbGagwa1aqm4xp8s/sj6aGtatsxTIBDusRIBHrDgjbxBrZ/YQqoq3gf 2CTMc2OmaqLfpT6VmIBTSbN3nH0FvBxW+qY+k9F5ahZJ/HbgqDHcawPC72ZQHbzh2Sa5 Vti4kaelo8OGfr3jhiO6HOFwAE5uMCxd1vdYK3aKcihT/IIalp1wzoZjkrbRNthuY9tG q4PA== X-Gm-Message-State: AOAM530Q5z1AP6VDHnni/DUp/iUrz9uY40P8vPmQZW/STNogWmh5fBVC IHwRgxmQCza2yXOM03nAjyD23710ChNOsY9DBxE= X-Google-Smtp-Source: ABdhPJzWmn8h6EExxRT+HzLgS7miY96zzQU3/ff2t7FE5VDglDHnRjqCfUkAGaSDI9R6j57deeP8yvUeuYiOtdM9OX8= X-Received: by 2002:a6b:14cb:: with SMTP id 194mr8071785iou.185.1635516939075; Fri, 29 Oct 2021 07:15:39 -0700 (PDT) MIME-Version: 1.0 References: <20211025035526.3169168-1-kirankumark@marvell.com> <20211025035526.3169168-2-kirankumark@marvell.com> In-Reply-To: <20211025035526.3169168-2-kirankumark@marvell.com> From: Jerin Jacob Date: Fri, 29 Oct 2021 19:45:12 +0530 Message-ID: To: Kiran Kumar K , Ferruh Yigit Cc: Nithin Dabilpuram , Sunil Kumar Kori , Satha Rao , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Mon, Oct 25, 2021 at 9:25 AM wrote: > > From: Kiran Kumar K > > Sync mbox with AF, And bump up the version. > > Signed-off-by: Kiran Kumar K Updated as common/cnxk: update mailbox version to 0xb Sync mailbox definition with AF kernel driver. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- > 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. > -- > 2.25.1 >