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 091BBA0032; Tue, 28 Sep 2021 11:18:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED253410D7; Tue, 28 Sep 2021 11:18:42 +0200 (CEST) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by mails.dpdk.org (Postfix) with ESMTP id 61CF940E3C for ; Tue, 28 Sep 2021 11:18:41 +0200 (CEST) Received: by mail-io1-f45.google.com with SMTP id d18so26303048iof.13 for ; Tue, 28 Sep 2021 02:18:41 -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=7+h/FrlL6xGsQABcydVSxcKOJN8hL31S/i4d9mBrbSU=; b=g28JyXV1M8/hMoSlUc57sDXqh86SZHqLd6+hqt1R03EYtrmNrvdGgtXDuCeRWsBJxo 0tWwNcgO1z7nwKIFm0rSi4MrUOp3jNvJCSHr8t15AjdsCCTJTa69oAkhYvp5JNACXv1N RxBCfBnPhH6vKbOv5qBztPmo1TTWnk8B5QCCp9mCDJUYzJ76IFEgXyWURTEdi1qhhpS/ 0CXnbHKabc/x79sjHwb0JhOISgLi2kCbYB4dOcYPW4dGGeW5iI/Kx9841YaaLWjUaZCU u/a+ehZknq+GOVBc7hVk/PJeoZokYSd+CsgCdr6oJvHSA2qGYshaYfi6JvbaUd2S2op+ bqRA== 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=7+h/FrlL6xGsQABcydVSxcKOJN8hL31S/i4d9mBrbSU=; b=0IyOnf2XzwtCQVvsa1A+eMDLnv08wxkhx7KKF3Wnqw6Uf6dbngWIedB4Oekjoq5BXc TXeeyfw8LXNR+PJTol1Glhz+FcOjs5je2vERQ2QGvwlicTNKJ/bfWL53EDXwbfBjxJkE rbHu6otOcIAcDui5N+AiJLGmuO/4qZ1SsIgROu6ooSO3jDKnIYeYtKW5er+BwJyIR51P QwvDU122qhTe44vojC++E5adu1h5MLM/qWZtt8RvlFtUB82nrhAn6y/xEMJD3zxRsaen JWXOLplMBwP7Ut822mQiIZJkNKbQCGyenEeeg1R1p2YRCR2dccWqbRSTpK3DlvvBV8AX r/Nw== X-Gm-Message-State: AOAM532AGoLFi5hzwlgmRFA7iRHwnN8i5+l+tQk5Sh8UQ4zau05PAr7g +xZBXWdp6U4wVCsJGVvXJiDNyoqUhb+cT4E2rQ4mk4ov3ncq8g== X-Google-Smtp-Source: ABdhPJzdO+04WV179bGpNcUywrEaq47BFgSmUhWd4HYZsQfgJru2UEOag4T2DWP8rYMvGPGC0P51lkCFGFePdtrFIhM= X-Received: by 2002:a05:6602:208f:: with SMTP id a15mr3117437ioa.123.1632820720712; Tue, 28 Sep 2021 02:18:40 -0700 (PDT) MIME-Version: 1.0 References: <20210726135815.81201-1-tduszynski@marvell.com> <20210726135815.81201-7-tduszynski@marvell.com> In-Reply-To: <20210726135815.81201-7-tduszynski@marvell.com> From: Jerin Jacob Date: Tue, 28 Sep 2021 14:48:14 +0530 Message-ID: To: Tomasz Duszynski Cc: dpdk-dev , Jakub Palider , Thomas Monjalon , Jerin Jacob Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 6/6] raw/cnxk_bphy: use named value for queue count 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, Jul 26, 2021 at 7:29 PM Tomasz Duszynski wrote: > > From: Jakub Palider > > Queue counter is used in a few places so it was given some > reasonable name. > > Signed-off-by: Jakub Palider Series Acked-by: Jerin Jacob Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- > drivers/raw/cnxk_bphy/cnxk_bphy.c | 2 ++ > drivers/raw/cnxk_bphy/cnxk_bphy_irq.h | 3 ++- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/raw/cnxk_bphy/cnxk_bphy.c b/drivers/raw/cnxk_bphy/cnxk_bphy.c > index affc5c3e83..030beff05e 100644 > --- a/drivers/raw/cnxk_bphy/cnxk_bphy.c > +++ b/drivers/raw/cnxk_bphy/cnxk_bphy.c > @@ -51,6 +51,8 @@ bphy_rawdev_selftest(uint16_t dev_id) > queues = rte_rawdev_queue_count(dev_id); > if (queues == 0) > return -ENODEV; > + if (queues != BPHY_QUEUE_CNT) > + return -EINVAL; > > ret = rte_rawdev_start(dev_id); > if (ret) > diff --git a/drivers/raw/cnxk_bphy/cnxk_bphy_irq.h b/drivers/raw/cnxk_bphy/cnxk_bphy_irq.h > index b55147b93e..f141677e2a 100644 > --- a/drivers/raw/cnxk_bphy/cnxk_bphy_irq.h > +++ b/drivers/raw/cnxk_bphy/cnxk_bphy_irq.h > @@ -23,10 +23,11 @@ struct bphy_irq_queue { > }; > > struct bphy_device { > +#define BPHY_QUEUE_CNT 1 > struct roc_bphy_irq_chip *irq_chip; > struct bphy_mem mem; > /* bphy irq interface supports single queue only */ > - struct bphy_irq_queue queues[1]; > + struct bphy_irq_queue queues[BPHY_QUEUE_CNT]; > }; > > int cnxk_bphy_intr_init(uint16_t dev_id); > -- > 2.25.1 >