DPDK usage discussions
 help / color / Atom feed
* [dpdk-users] [Crypto-QAT] queue pairs per QAT device
@ 2019-05-13 18:47 Meng Wang
  2019-05-14 17:04 ` Trahe, Fiona
  0 siblings, 1 reply; 2+ messages in thread
From: Meng Wang @ 2019-05-13 18:47 UTC (permalink / raw)
  To: users

Hi,

I'm trying to understand how queue pairs get setup on QAT. I have 
created one VF for each lcore. From qat code it seems support up to 2 
qps per device/VF, one for each direction. Then I found that each queue 
pair has its own qat_queue rx/tx.

/* Maximum number of qps on a device for any service type */
#define ADF_MAX_QPS_ON_ANY_SERVICE    2
#define ADF_RING_DIR_TX            0
#define ADF_RING_DIR_RX            1

How does the direction of qp correlate to direction of qat_queue? Is one 
queue pair sufficient to transmit packet between QAT and application per 
core?

Thanks,
Meng


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] [Crypto-QAT] queue pairs per QAT device
  2019-05-13 18:47 [dpdk-users] [Crypto-QAT] queue pairs per QAT device Meng Wang
@ 2019-05-14 17:04 ` Trahe, Fiona
  0 siblings, 0 replies; 2+ messages in thread
From: Trahe, Fiona @ 2019-05-14 17:04 UTC (permalink / raw)
  To: Meng Wang, users; +Cc: Trahe, Fiona

Hi Meng,

> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Meng Wang
> Sent: Monday, May 13, 2019 7:47 PM
> To: users@dpdk.org
> Subject: [dpdk-users] [Crypto-QAT] queue pairs per QAT device
> 
> Hi,
> 
> I'm trying to understand how queue pairs get setup on QAT. I have
> created one VF for each lcore. From qat code it seems support up to 2
> qps per device/VF, one for each direction. Then I found that each queue
> pair has its own qat_queue rx/tx.
> 
> /* Maximum number of qps on a device for any service type */
> #define ADF_MAX_QPS_ON_ANY_SERVICE    2
> #define ADF_RING_DIR_TX            0
> #define ADF_RING_DIR_RX            1
> 
> How does the direction of qp correlate to direction of qat_queue? Is one
> queue pair sufficient to transmit packet between QAT and application per
> core?
> 
> Thanks,
> Meng
[Fiona] There is no direction associated with a qp - as you noted each queue pair
has both a transmit and a receive queue. (or 2 rings, if you're familiar with other QAT drivers)
So yes, one qp is sufficient and you should enqueue and dequeue to/from the same qp.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-13 18:47 [dpdk-users] [Crypto-QAT] queue pairs per QAT device Meng Wang
2019-05-14 17:04 ` Trahe, Fiona

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox