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 B677DA0032; Sat, 4 Jun 2022 11:36:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73B024021E; Sat, 4 Jun 2022 11:36:22 +0200 (CEST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by mails.dpdk.org (Postfix) with ESMTP id E36AD40041 for ; Sat, 4 Jun 2022 11:36:20 +0200 (CEST) Received: by mail-qt1-f173.google.com with SMTP id ew15so7324354qtb.2 for ; Sat, 04 Jun 2022 02:36:20 -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:content-transfer-encoding; bh=Redj1o4WNdyu7+YhNJDh8uLAayXuK972uy+j2GJfflc=; b=Bdf8NjHMl43BwjA9Qu5kKA4gMpWshUCDouq3kB8/mUS7TXAY5ZTNl+8W6ZP9swpJY7 sGhbQjwFJsPmoXsw6busmuSG0JWVUL/Zv9a9uJpRulDgXKPBrp3QuUo2hR/rxeK8dBHo m+L1U2k5Mp2PHdMrt4MzP0BvlYqEaJOgUJs2XHS/tDeI1+RkMpGbkPaDVJWaRoVe5FJR 5VI/pCXm7s6fhnrQMEYKEHtCS+GmDo/VnTA9yUOJCXBvJHXHm7/oHf9o3pSPunGu7WeB eU+MjCp6mexdVKjuB8yWcQokUd4yKjByd3WP0trRO2DvwurnoWkWBhFi8JtnP3+eQxF7 LV1w== 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:content-transfer-encoding; bh=Redj1o4WNdyu7+YhNJDh8uLAayXuK972uy+j2GJfflc=; b=KtAd/8ZI3vBpjFwyOEEk0HkQN4COo7TNHWkMysb16xdcGZOk1CGJow1GohnNA6OxJa nciIac2AKUxg9gYkp+N37neY4VMyJpgQY2sJGBPM6j8o1a8KMRIr3bk0pS6GLiRQu/6X vT9xPdRocmJGKNFkyyC5RxyOsZvtmcj19g97ATt/L9yTW3W35vEcnC1Pavrr2gpnO4Jd 1YJ32U8P5go/4Rb9y0oRqREvu+sIn2mzoruUccGtSaeKqlo1c7ARIuUr7jZYwuujHb1G 1O9KkPU2j8E0PhZ879rJJpQZYZzGXGR0Xzr7H2Vg1pMEt1oTlobF3BXWzEYH4QSoSiEF JTIA== X-Gm-Message-State: AOAM531tkRTkeVFIj1x2ZqhdWrJcJKWclZ2g2fwK9j+yXw2P3Fg3VMFq YuveNXV+S7/mWcuRgNJBGJVy8i0my/o1R7RpYFg= X-Google-Smtp-Source: ABdhPJwIS1GpmbyzxxbBhg8tVeVTNyxEL1pGeVmJ8ZkTXNPnJdu1EKxu1kQ+xCO7YmyXzdGFi+XGlPgBKh8XKtRyg1c= X-Received: by 2002:a05:622a:1824:b0:2f3:c196:10d with SMTP id t36-20020a05622a182400b002f3c196010dmr11094702qtc.74.1654335380372; Sat, 04 Jun 2022 02:36:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jerin Jacob Date: Sat, 4 Jun 2022 15:05:54 +0530 Message-ID: Subject: Re: RFC: adapter instance get api proposal To: "Kundapura, Ganapati" Cc: "dev@dpdk.org" , "jerinj@marvell.com" , "Jayatheerthan, Jay" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Jun 3, 2022 at 9:47 PM Kundapura, Ganapati wrote: > > Hi dpdk-dev, > > I would like to submit adapter instance get api to retrieve the Rx/Tx = adapter instance id for for a Rx/Tx queue > > > > int > > rte_event_eth_rx_adapter_queue_instance_get(uint16_t eth_dev_id, > > uint16_t rx_queue_id, uint8_t= *instance_id) > > > > and > > > > int > > rte_event_eth_tx_adapter_queue_instance_get(uint16_t eth_dev_id, > > uint16_t tx_queue_id, uint8_t= *instance_id) > > > > When application creates multiple adapter instances and adds queues to di= fferent adapter instances, > > It=E2=80=99s difficult to maintain which queue belongs to which adapter i= nstance. > > > > With this api, application need not manage the instance id=E2=80=99s for = the queues. It can query the > > Instance id for the specified queue. > > > > I look forward feedback on this proposal to submit patch for the review. I hope it will be a common code that all PMD can use. You may reduce the length of function as rte_event_eth_tx_adapter_instance_= get() IMO, Rest looks good > > > > Thanks, > > Ganapati