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 F0D2841C61; Fri, 10 Feb 2023 14:58:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CDDF40EE6; Fri, 10 Feb 2023 14:58:35 +0100 (CET) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by mails.dpdk.org (Postfix) with ESMTP id A201240687 for ; Fri, 10 Feb 2023 14:58:33 +0100 (CET) Received: by mail-vs1-f42.google.com with SMTP id m1so5726097vst.7 for ; Fri, 10 Feb 2023 05:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6yZDrQBMqYTbWSMuiW8+qbMLPj4GSvtU9w5yoVdB/Fc=; b=i03yCdUiwfUaAHC0BHExFH7WxzowKmBSVUQ+MezcpFn4GTQbNOFP5qRsS1loX6Zjuw 3WFnMdEoaCsk7ItP/SDo6Y4sIKQW0aWE3/TwhdUvNTTk2iTvdQi84hlH9OREMJ2j1jFG 0Sgo2ge39ouaGSaKpma9MI6WzlUmPFpZ683WLHTcMo1ezUoL2N4FSJ/lNoKrD7dOdXRM X91r2ZxOvgOkgu6rgzQ0soEowhGrrSMftZbxIlyX8bYzMhqEZfVqSgXdfPZynnAFG20n 8O/Ekl8j7hYpF7lO4YF940/UwJZQSGdOAJbfEPO5JcGHjnzPvGogxQ1lZGKLEGYb0Buj nS7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6yZDrQBMqYTbWSMuiW8+qbMLPj4GSvtU9w5yoVdB/Fc=; b=IL+6C/euij8Juw2ci0xF6HWh/BSeAEPUWNyyQXn+8HJJ5eSfHkxX/qCfTrtzS4wxv2 bvjn3kn5663U6g7qb4zWDFLgSUzTsCVOfEUHim4mjyZmN79FpSFFRpa62bTvCLScpS2y PTIie+xLa8sEaRffgTXR6QkP9cocOrbl8ChO6Mh6/Ptt/6ImNx10X8krUr+ZfXizigA5 aaaLRLBWbdmPzcHFh39E7BbKyEZMHNhDg6Gep5dXGbrm+apyGJTd12ZhDvSsgTJi73R3 kx1Ta21qXxKQCkwwVFYr/MydhmaW+wDRgyVDMAVVa/HGgArubHiAmDpzGZAMoSQlgrk9 o70g== X-Gm-Message-State: AO0yUKWpzHVcwc5i3PoiyGfJdmX5P3rUX3zgFuFDfQoZtEqN1yeTaf2f T34H2spnuMKj1FGsP+undme4hE6WSDKK0jTj03o= X-Google-Smtp-Source: AK7set/DwL9MVwNQPnqj/LjQZ/vf61tLv1sSt9lQ19yEC5jG8NUi8urrNZnkgVmxwA4+TCle925aG3aVsEnqeGBqL+U= X-Received: by 2002:a67:de9a:0:b0:40f:b3a4:ccbc with SMTP id r26-20020a67de9a000000b0040fb3a4ccbcmr3353597vsk.45.1676037512938; Fri, 10 Feb 2023 05:58:32 -0800 (PST) MIME-Version: 1.0 References: <20230210045816.3039312-1-s.v.naga.harish.k@intel.com> <20230210133319.3403689-1-s.v.naga.harish.k@intel.com> In-Reply-To: <20230210133319.3403689-1-s.v.naga.harish.k@intel.com> From: Jerin Jacob Date: Fri, 10 Feb 2023 19:28:06 +0530 Message-ID: Subject: Re: [PATCH v5 1/3] eventdev/eth_rx: add params set/get APIs To: Naga Harish K S V Cc: jerinj@marvell.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com, dev@dpdk.org, jay.jayatheerthan@intel.com 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 Fri, Feb 10, 2023 at 7:03 PM Naga Harish K S V wrote: > > The adapter configuration parameters defined in the > struct rte_event_eth_rx_adapter_runtime_params can be configured > and retrieved using rte_event_eth_rx_adapter_runtime_params_set and rte_event_eth_rx_adapter_runtime_params_set() > rte_event_eth_tx_adapter_runtime_params_get respectively. rte_event_eth_tx_adapter_runtime_params_get() > > Signed-off-by: Naga Harish K S V > --- > +/** > + * Adapter runtime configuration parameters > + */ > +struct rte_event_eth_rx_adapter_runtime_params { > + uint32_t max_nb_rx; > + /**< The adapter can return early if it has processed at least > + * max_nb_rx mbufs. This isn't treated as a requirement; batching may > + * cause the adapter to process more than max_nb_rx mbufs. > + * > + * rte_event_eth_rx_adapter_create() or > + * rte_event_eth_adapter_create_with_params() configures the > + * adapter with default value of maximum packets processed per > + * iteration to 128. > + * rte_event_eth_rx_adapter_runtime_params_set() allows to re-configure > + * maximum packets processed per iteration. This is alternative to using > + * rte_event_eth_rx_adapter_create_ext() with parameter > + * rte_event_eth_rx_adapter_conf::max_nb_rx > + * > + * This is valid for service based SW adapter only This is valid for the devices without RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT capability.