On Fri, Jun 3, 2022 at 9:47 PM Kundapura, Ganapati
<ganapati.kundap...@intel.com> 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 
> different adapter instances,
>
> It’s difficult to maintain which queue belongs to which adapter instance.
>
>
>
> With this api, application need not manage the instance id’s 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

Reply via email to