From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1B21D530F for ; Tue, 20 Sep 2016 15:48:43 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 20 Sep 2016 06:48:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,368,1470726000"; d="scan'208";a="170986802" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.69]) ([10.237.220.69]) by fmsmga004.fm.intel.com with ESMTP; 20 Sep 2016 06:48:40 -0700 From: Ferruh Yigit To: Kamil Rytarowski , dev@dpdk.org References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> <1472230448-17490-5-git-send-email-krytarowski@caviumnetworks.com> Cc: maciej.czekaj@caviumnetworks.com, zyta.szpak@semihalf.com, slawomir.rosek@semihalf.com, rad@semihalf.com, jerin.jacob@caviumnetworks.com, Kamil Rytarowski Message-ID: <531538a8-5a7b-b5ee-10b9-46e7bbb1acd0@intel.com> Date: Tue, 20 Sep 2016 14:48:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1472230448-17490-5-git-send-email-krytarowski@caviumnetworks.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 04/13] net/thunderx/base: add secondary queue set support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 13:48:44 -0000 On 8/26/2016 5:53 PM, Kamil Rytarowski wrote: > From: Kamil Rytarowski > > Changes: > - add new message sqs_alloc in mailbox > - add a queue container to hold secondary qsets. > - add nicvf_mbox_request_sqs > - handle new mailbox messages for secondary queue set support > - register secondary queue sets for furthe reuse > - register the number secondary queue sets in MSG_QS_CFG > > Signed-off-by: Maciej Czekaj > Signed-off-by: Kamil Rytarowski > Signed-off-by: Zyta Szpak > Signed-off-by: Slawomir Rosek > Signed-off-by: Radoslaw Biernacki > Signed-off-by: Jerin Jacob > --- > drivers/net/thunderx/base/nicvf_hw_defs.h | 1 + > drivers/net/thunderx/base/nicvf_mbox.c | 34 ++++++++++++++++++++++++++++++- > drivers/net/thunderx/base/nicvf_mbox.h | 21 +++++++++++++++++-- > drivers/net/thunderx/nicvf_struct.h | 5 +++++ > 4 files changed, 58 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/thunderx/base/nicvf_hw_defs.h b/drivers/net/thunderx/base/nicvf_hw_defs.h > index 2f2b225..3b947e0 100644 > --- a/drivers/net/thunderx/base/nicvf_hw_defs.h > +++ b/drivers/net/thunderx/base/nicvf_hw_defs.h > @@ -207,6 +207,7 @@ > #define NICVF_CQE_RX2_RBPTR_WORD (7) > > #define NICVF_STATIC_ASSERT(s) _Static_assert(s, #s) > +#define assert_if_secondary(nic) assert((nic)->sqs_mode == 0) assert_if_not_secondary?