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 DE7DBA0A0F; Wed, 30 Jun 2021 17:22:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9458240141; Wed, 30 Jun 2021 17:22:44 +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 137E740040 for ; Wed, 30 Jun 2021 17:22:43 +0200 (CEST) Received: by mail-io1-f42.google.com with SMTP id a6so3667980ioe.0 for ; Wed, 30 Jun 2021 08:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yBQ6bnFhWjn9YJgbKwYGGEy0Uld3BfDyV62L9J6mZfo=; b=ln1pJe0ht65u47UKulUSIBrTg9j9ed0R2Qd7TZ1T3jyt3fG8tJOntkbdoFpD8A9SrZ l2jhnzO/Jo2py4lvZGGxpnrPWL41Dxx3j8Hi3WuBS0Y5GnS/3H0yFXZUN9+kOVkU1JEb 4QDmVa9h+jEU2U6sp8zfJrsFUQaKc1d05cPJfWhOTtZcP0vNPJuuaBXTuEQLh6B9nsT0 gP1Xg1sGZHW2gcPwT890HjtPeh5s1XN7NRju3EAUC3c4OGtcBNukiJ1SIc8hAK69WT7N S/d06PaJDxfhGNCMCFSCVLl5PO1lYZcFAYfswVGj8tcwYfeIJNxDquGC2mA2xh5tlB1/ hZLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=yBQ6bnFhWjn9YJgbKwYGGEy0Uld3BfDyV62L9J6mZfo=; b=lGjy48NCm8BZckqg6PJcnx/q0GrPplY3Yo5azwrSmLN3FhM9yK2rA2y+Hd8omKbCvM yvuWdMBu4cReYfZ2HdyWiHxHZxqCuRfoa/+P52193CFGP5jlkBjRxdY6MNWt0rvHTAZ0 +YPlYX9OGEBWi4yJG/IUpCsrIvEPp2O1lFATSySJzED/HT7gchqtHunAeK5Ym8dC0CpM AfysbNm+Hq307Ns4e6/ThZVT9dlpxvNUHI5f/8b8boROFdC7AGB83ViLL08F0WJfcMCd yh84D+85AYxxRBUeXCW0Bcd9/0ejIZ4im3fWI3r8ao3ECAs5tjQ/hJkhVx1eAok7ImF8 PDYQ== X-Gm-Message-State: AOAM532LreFH9Jdx1klgl2UH9roY7HvYDUnyNersRcOJ9nO4jMPejYko e0Mf50qJvcXPp1B6c0/pxraUg/POOvG5Q+Srgzk= X-Google-Smtp-Source: ABdhPJwCMUv0BQp3sFZZAlHeQiAlippQS6c/OOD5T58q/joXQB8mgeGJh2sbGuNwyv5SXLHC1OxSxOuMv0bcSv7PYkU= X-Received: by 2002:a5d:8584:: with SMTP id f4mr8060092ioj.59.1625066562362; Wed, 30 Jun 2021 08:22:42 -0700 (PDT) MIME-Version: 1.0 References: <20210614102358.11488-1-mattias.ronnblom@ericsson.com> In-Reply-To: <20210614102358.11488-1-mattias.ronnblom@ericsson.com> From: Jerin Jacob Date: Wed, 30 Jun 2021 20:52:16 +0530 Message-ID: To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: Jerin Jacob , dpdk-dev , Heng Wang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] event/dsw: flag proper eventdev adapter capabilities 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, Jun 14, 2021 at 3:54 PM Mattias R=C3=B6nnblom wrote: > > Set the appropriate capability flags for the RX, crypto and timer > eventdev adapters to use. > > Signed-off-by: Mattias R=C3=B6nnblom > Tested-by: Heng Wang Applied to dpdk-next-net-eventdev/for-main. Thanks > --- > drivers/event/dsw/dsw_evdev.c | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.= c > index 320a3784c..2301a4b7a 100644 > --- a/drivers/event/dsw/dsw_evdev.c > +++ b/drivers/event/dsw/dsw_evdev.c > @@ -370,6 +370,34 @@ dsw_close(struct rte_eventdev *dev) > return 0; > } > > +static int > +dsw_eth_rx_adapter_caps_get(const struct rte_eventdev *dev __rte_unused, > + const struct rte_eth_dev *eth_dev __rte_unuse= d, > + uint32_t *caps) > +{ > + *caps =3D RTE_EVENT_ETH_RX_ADAPTER_SW_CAP; > + return 0; > +} > + > +static int > +dsw_timer_adapter_caps_get(const struct rte_eventdev *dev __rte_unused, > + uint64_t flags __rte_unused, uint32_t *caps, > + const struct rte_event_timer_adapter_ops **ops= ) > +{ > + *caps =3D 0; > + *ops =3D NULL; > + return 0; > +} > + > +static int > +dsw_crypto_adapter_caps_get(const struct rte_eventdev *dev __rte_unused= , > + const struct rte_cryptodev *cdev __rte_unuse= d, > + uint32_t *caps) > +{ > + *caps =3D RTE_EVENT_CRYPTO_ADAPTER_SW_CAP; > + return 0; > +} > + > static struct rte_eventdev_ops dsw_evdev_ops =3D { > .port_setup =3D dsw_port_setup, > .port_def_conf =3D dsw_port_def_conf, > @@ -384,6 +412,9 @@ static struct rte_eventdev_ops dsw_evdev_ops =3D { > .dev_start =3D dsw_start, > .dev_stop =3D dsw_stop, > .dev_close =3D dsw_close, > + .eth_rx_adapter_caps_get =3D dsw_eth_rx_adapter_caps_get, > + .timer_adapter_caps_get =3D dsw_timer_adapter_caps_get, > + .crypto_adapter_caps_get =3D dsw_crypto_adapter_caps_get, > .xstats_get =3D dsw_xstats_get, > .xstats_get_names =3D dsw_xstats_get_names, > .xstats_get_by_name =3D dsw_xstats_get_by_name > -- > 2.25.1 >