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 C68D6A0547; Fri, 29 Oct 2021 16:14:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9204B4111F; Fri, 29 Oct 2021 16:14:29 +0200 (CEST) Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by mails.dpdk.org (Postfix) with ESMTP id E6DA2410E1 for ; Fri, 29 Oct 2021 16:14:26 +0200 (CEST) Received: by mail-il1-f171.google.com with SMTP id f10so6241729ilu.5 for ; Fri, 29 Oct 2021 07:14:26 -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=2ThyjwO629mDo6bfqvezE181ctj2g6/cAVjk5nGzoqM=; b=NqCWVKAH2I2fg5E6a2ljuDeW0Jz1F5Xw/rMlY2z/0DsFPlaGy/vplpkHI/T2u+SUew J+y+B0RATbEZLxAPtju/3I/ufjrXGkSR7bV4sM67zognTA4wUs9CK0DzSy1qkFIA6gqF O+Yf0iU1aou2VU4ASsRf8qbjDPmIzE762E603JpxoryULa76UA8BubNgh7fnCuavMa8Z F49JMUEWFMgSlEdEbima7OOt2deYna3/7vI91ivpZ8rVjUEQirxh3BaXR7AdjHiHnZTn iTlPGhSsxzP/9FnkEgrV47t+mhHHv6eWLT3VFPfcxEZEyEnn+MOx0+Dc1g5MQleIQDtV bagQ== 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=2ThyjwO629mDo6bfqvezE181ctj2g6/cAVjk5nGzoqM=; b=aTfpzQ3oet3zpJ0Gk8hcmemlPsHzl6Z9dWLytvDqKEKeQ2H+tkj45ZrOwQrdhXoj6n +nXgwJBqdBhYIcpCE9rIDehKQVpyVw+7Id9d1S5oyBZYcZJHb8lHUGeMdpdj7XFv1WCc q6za0TQolkle+yAz4fPVbFqaIqrh0a7tVgOUKTbAbwTqyPc5ZlZoT5poSUNQCsWMXH7e GgI///1K3Yjwf+5aG6svJFmtpVORH9KZk+Jm6IeMCDEBBalBAr+944F91SXmKnVo+YVz 4XFhaiwwUfSiel1/2o7Uf+5JOBa7AbaXmrdc8n4oa6GPiX2gBIJn+xCQwZOlLqZge1FT JqBg== X-Gm-Message-State: AOAM530LZjWq/KHzvJOuvcNBsoGRhNTCMyJRoLKgmnaEtoul26aftzvX 802DoGShNohVSfxrwjyIHofOWbzchRyrn5wZGXhSc6FEG+8= X-Google-Smtp-Source: ABdhPJzNuxmHIzKLBtr3wR9IMoI1Eplmg6CzmRRLOoO2hSUxW+87glK5/IB+OEYYXoo9vhJZj1Q/69vpmdwkWBgDrS0= X-Received: by 2002:a05:6e02:174d:: with SMTP id y13mr7912498ill.251.1635516866261; Fri, 29 Oct 2021 07:14:26 -0700 (PDT) MIME-Version: 1.0 References: <20211025035526.3169168-1-kirankumark@marvell.com> In-Reply-To: <20211025035526.3169168-1-kirankumark@marvell.com> From: Jerin Jacob Date: Fri, 29 Oct 2021 19:44:00 +0530 Message-ID: To: Kiran Kumar K Cc: Jerin Jacob , Nithin Dabilpuram , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 1/2] common/octeontx2: 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/octeontx2: update mailbox version to 0xb Sync mailbox definition with AF kernel driver. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob > --- > drivers/common/octeontx2/otx2_mbox.h | 30 ++++++++++++++++++---------- > 1 file changed, 20 insertions(+), 10 deletions(-) > > diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h > index b435694db7..25b521a7fa 100644 > --- a/drivers/common/octeontx2/otx2_mbox.h > +++ b/drivers/common/octeontx2/otx2_mbox.h > @@ -90,7 +90,7 @@ struct mbox_msghdr { > #define OTX2_MBOX_RSP_SIG (0xbeef) > /* Signature, for validating corrupted msgs */ > uint16_t __otx2_io sig; > -#define OTX2_MBOX_VERSION (0x000a) > +#define OTX2_MBOX_VERSION (0x000b) > /* Version of msg's structure for this ID */ > uint16_t __otx2_io ver; > /* Offset of next msg within mailbox region */ > @@ -356,6 +356,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, > @@ -373,18 +374,27 @@ enum npc_pkind_type { > /* Struct to set pkind */ > struct npc_set_pkind { > struct mbox_msghdr hdr; > -#define OTX2_PRIV_FLAGS_DEFAULT BIT_ULL(0) > -#define OTX2_PRIV_FLAGS_EDSA BIT_ULL(1) > -#define OTX2_PRIV_FLAGS_HIGIG BIT_ULL(2) > -#define OTX2_PRIV_FLAGS_FDSA BIT_ULL(3) > -#define OTX2_PRIV_FLAGS_EXDSA BIT_ULL(4) > -#define OTX2_PRIV_FLAGS_VLAN_EXDSA BIT_ULL(5) > -#define OTX2_PRIV_FLAGS_CUSTOM BIT_ULL(63) > +#define OTX2_PRIV_FLAGS_DEFAULT BIT_ULL(0) > +#define OTX2_PRIV_FLAGS_EDSA BIT_ULL(1) > +#define OTX2_PRIV_FLAGS_HIGIG BIT_ULL(2) > +#define OTX2_PRIV_FLAGS_FDSA BIT_ULL(3) > +#define OTX2_PRIV_FLAGS_EXDSA BIT_ULL(4) > +#define OTX2_PRIV_FLAGS_VLAN_EXDSA BIT_ULL(5) > +#define OTX2_PRIV_FLAGS_CUSTOM BIT_ULL(63) > uint64_t __otx2_io mode; > -#define PKIND_TX BIT_ULL(0) > -#define PKIND_RX BIT_ULL(1) > +#define PKIND_TX BIT_ULL(0) > +#define PKIND_RX BIT_ULL(1) > uint8_t __otx2_io dir; > uint8_t __otx2_io pkind; /* valid only in case custom flag */ > + uint8_t __otx2_io var_len_off; > + /* Offset of custom header length field. > + * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND > + */ > + uint8_t __otx2_io var_len_off_mask; /* Mask for length with in offset */ > + uint8_t __otx2_io shift_dir; > + /* Shift direction to get length of the > + * header at var_len_off > + */ > }; > > /* Structure for requesting resource provisioning. > -- > 2.25.1 >