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 4C970A034C; Mon, 9 May 2022 14:58:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D548C407FF; Mon, 9 May 2022 14:58:24 +0200 (CEST) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by mails.dpdk.org (Postfix) with ESMTP id F31504068F for ; Mon, 9 May 2022 14:58:23 +0200 (CEST) Received: by mail-io1-f42.google.com with SMTP id e3so15151824ios.6 for ; Mon, 09 May 2022 05:58:23 -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=MLxwWf5f3OQCGdYYlDRqxtHNFHdk4BV0FTEj4LtryMc=; b=HfQwsFmpqsmPF+qKqVm6nedrZxJqbODQ4lDTVOg52JyrSAiJEVIVp3+2mD1ozXd+5L dzAMRtDhLtK5H718djDkDMigmsIo7vpD0FQmc8jN1xeAMCC8uQw8vdk9djszE4H/l3rn FDjETEERjC40NG5mshyew4V4GCVXcOc4niEpmM1w6lWhwFfOMINuPPSYFbw0pGayOu7E EOjwH8/9FOodge7rcqxJ9lZyEnfLpYq7rhLDnhAz+4PUEw0MEY/xGiGr9VOEmpqF0tr4 yZ9eRdAUYaIlHbqfcOTl9Puo63Z7vWJUy0rYrJzjm/tRVfeWsUbPfCUjhePbtRjD2AQC g8PA== 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=MLxwWf5f3OQCGdYYlDRqxtHNFHdk4BV0FTEj4LtryMc=; b=KUDa1vmtxSU7hXyQfY1C1qWO8jBniB9Nuy10a1F5nimtbTjtLyr6LKxv3mX3vLer+L G42CCB0I23r2/CAVgcnZJA1/3OgCwqVZxm1W0vykW4XWywWBzTNCsh+feLI/hY71cPjb qQv7MVTburwOqBW6Vcgk6paayxoVFM/5L51zCiMjQdZZiD7K31//y6tSopxji/ZEsF/4 H6+t9DERmZi5lmzvVJ2Ajp7Gkcf7dPL+WXnM/wE2Bjps41xa6vploTBDUFxFU5gZx+1n UiXkDwKSDYBUc7zbPes8l+ZDNDpbwiqsNasHzM74Pv/SU7HdpJUTt6QeIhofXaXVit9a PnZw== X-Gm-Message-State: AOAM5320MDNf2Wqm9MNAtKQtqorjeCGfkkyTlXposr1i5wfg8ZBjiNHG wpFqO+p9AOiNcx3/Y8eQrelJnaFwMPwo4grgd2o= X-Google-Smtp-Source: ABdhPJwTnIupd4g00pEFPFtUOFi2b+DuwnyCVkUsK3CZsttXLR4ucU97QJG4B+VmmwXWV0/66AUtA6BNa0bTPUo8LxY= X-Received: by 2002:a05:6602:2acd:b0:65a:9f9d:23dc with SMTP id m13-20020a0566022acd00b0065a9f9d23dcmr6287565iov.154.1652101103316; Mon, 09 May 2022 05:58:23 -0700 (PDT) MIME-Version: 1.0 References: <67b6f4fefe4d7d00b3f4806acb4aecd8dd727744.1649136534.git.sthotton@marvell.com> In-Reply-To: <67b6f4fefe4d7d00b3f4806acb4aecd8dd727744.1649136534.git.sthotton@marvell.com> From: Jerin Jacob Date: Mon, 9 May 2022 18:27:57 +0530 Message-ID: Subject: Re: [PATCH v2 5/6] event/cnxk: support to set runtime queue attributes To: Shijith Thotton Cc: dpdk-dev , Jerin Jacob , Pavan Nikhilesh , "Van Haaren, Harry" , =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Content-Type: text/plain; charset="UTF-8" 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 On Tue, Apr 5, 2022 at 11:12 AM Shijith Thotton wrote: > > Added API to set queue attributes at runtime and API to get weight and > affinity. > > Signed-off-by: Shijith Thotton > --- > doc/guides/eventdevs/features/cnxk.ini | 1 + > drivers/event/cnxk/cn10k_eventdev.c | 4 ++ > drivers/event/cnxk/cn9k_eventdev.c | 4 ++ > drivers/event/cnxk/cnxk_eventdev.c | 91 ++++++++++++++++++++++++-- > drivers/event/cnxk/cnxk_eventdev.h | 16 +++++ > 5 files changed, 110 insertions(+), 6 deletions(-) > > diff --git a/doc/guides/eventdevs/features/cnxk.ini b/doc/guides/eventdevs/features/cnxk.ini > index 7633c6e3a2..bee69bf8f4 100644 > --- a/doc/guides/eventdevs/features/cnxk.ini > +++ b/doc/guides/eventdevs/features/cnxk.ini > @@ -12,6 +12,7 @@ runtime_port_link = Y > multiple_queue_port = Y > carry_flow_id = Y > maintenance_free = Y > +runtime_queue_attr = y > + > .port_def_conf = cnxk_sso_port_def_conf, > .port_setup = cn9k_sso_port_setup, > .port_release = cn9k_sso_port_release, > diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c > index be021d86c9..e07cb589f2 100644 > --- a/drivers/event/cnxk/cnxk_eventdev.c > +++ b/drivers/event/cnxk/cnxk_eventdev.c > @@ -120,7 +120,8 @@ cnxk_sso_info_get(struct cnxk_sso_evdev *dev, > RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT | > RTE_EVENT_DEV_CAP_NONSEQ_MODE | > RTE_EVENT_DEV_CAP_CARRY_FLOW_ID | > - RTE_EVENT_DEV_CAP_MAINTENANCE_FREE; > + RTE_EVENT_DEV_CAP_MAINTENANCE_FREE | > + RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR; Please swap 6/6 and 5/6 as to avoid the runtime failure at this point.