All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests
@ 2020-10-20 19:43 Vinay Kumar Yadav
  2020-10-21  4:26 ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: Vinay Kumar Yadav @ 2020-10-20 19:43 UTC (permalink / raw)
  To: netdev, davem, kuba; +Cc: secdev, Vinay Kumar Yadav, Ayush Sawal

patch adds a logic to utilize multiple queues to process requests.
The queue selection logic uses a round-robin distribution technique
using a counter.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
---
 drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h    | 1 +
 drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h b/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
index 2d3dfdd2a716..e7b78b68eaac 100644
--- a/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
+++ b/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
@@ -235,6 +235,7 @@ struct chtls_dev {
 	struct list_head na_node;
 	unsigned int send_page_order;
 	int max_host_sndbuf;
+	u32 round_robin_cnt;
 	struct key_map kmap;
 	unsigned int cdev_state;
 };
diff --git a/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c b/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
index ec4f79049a06..5c3242ec0e10 100644
--- a/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
+++ b/drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
@@ -1220,8 +1220,9 @@ static struct sock *chtls_recv_sock(struct sock *lsk,
 	csk->sndbuf = csk->snd_win;
 	csk->ulp_mode = ULP_MODE_TLS;
 	step = cdev->lldi->nrxq / cdev->lldi->nchan;
-	csk->rss_qid = cdev->lldi->rxq_ids[port_id * step];
 	rxq_idx = port_id * step;
+	rxq_idx += cdev->round_robin_cnt++ % step;
+	csk->rss_qid = cdev->lldi->rxq_ids[rxq_idx];
 	csk->txq_idx = (rxq_idx < cdev->lldi->ntxq) ? rxq_idx :
 			port_id * step;
 	csk->sndbuf = newsk->sk_sndbuf;
-- 
2.18.1


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

* Re: [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests
  2020-10-20 19:43 [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests Vinay Kumar Yadav
@ 2020-10-21  4:26 ` Jakub Kicinski
  2020-10-21  5:09   ` Vinay Kumar Yadav
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2020-10-21  4:26 UTC (permalink / raw)
  To: Vinay Kumar Yadav; +Cc: netdev, davem, secdev, Ayush Sawal

On Wed, 21 Oct 2020 01:13:06 +0530 Vinay Kumar Yadav wrote:
> patch adds a logic to utilize multiple queues to process requests.
> The queue selection logic uses a round-robin distribution technique
> using a counter.

What's the Fixes tag for this one?

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

* Re: [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests
  2020-10-21  4:26 ` Jakub Kicinski
@ 2020-10-21  5:09   ` Vinay Kumar Yadav
  2020-10-22  1:21     ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: Vinay Kumar Yadav @ 2020-10-21  5:09 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, davem, secdev, Ayush Sawal



On 10/21/2020 9:56 AM, Jakub Kicinski wrote:
> On Wed, 21 Oct 2020 01:13:06 +0530 Vinay Kumar Yadav wrote:
>> patch adds a logic to utilize multiple queues to process requests.
>> The queue selection logic uses a round-robin distribution technique
>> using a counter.
> 
> What's the Fixes tag for this one?
> 

Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")

Thanks,
Vinay

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

* Re: [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests
  2020-10-21  5:09   ` Vinay Kumar Yadav
@ 2020-10-22  1:21     ` Jakub Kicinski
  0 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2020-10-22  1:21 UTC (permalink / raw)
  To: Vinay Kumar Yadav; +Cc: netdev, davem, secdev, Ayush Sawal

On Wed, 21 Oct 2020 10:39:22 +0530 Vinay Kumar Yadav wrote:
> On 10/21/2020 9:56 AM, Jakub Kicinski wrote:
> > On Wed, 21 Oct 2020 01:13:06 +0530 Vinay Kumar Yadav wrote:  
> >> patch adds a logic to utilize multiple queues to process requests.
> >> The queue selection logic uses a round-robin distribution technique
> >> using a counter.  
> > 
> > What's the Fixes tag for this one?
> 
> Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")

On a closer look it doesn't seem like round robin was ever implemented
here. So this doesn't seem like a fix. Unless you can prove otherwise
please repost for net-next when it opens.

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

end of thread, other threads:[~2020-10-22  1:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20 19:43 [PATCH net] chelsio/chtls: Utilizing multiple rxq/txq to process requests Vinay Kumar Yadav
2020-10-21  4:26 ` Jakub Kicinski
2020-10-21  5:09   ` Vinay Kumar Yadav
2020-10-22  1:21     ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.