Adding support for NSS RPS
1) NSS now supports 2 N2H data queues in NSS -> Host direction, and 2 corresponding N2H interrupts
2) Based on flow hash , NSS sends packets on 2 separate queues and triggers corresponding interrupt.
3) On Host, the 2 interrupts could be routed to 2 separate CPUs (using irq-affinity)
4) Added sysctl for run-time RPS Enable/Disable.
CRs-Fixed: 701711
Change-Id: Ic30178599d9f9444962b4c252d9375a70521bdbf
Signed-off-by: Pamidipati, Vijay <vpamidip@codeaurora.org>
diff --git a/nss_crypto.c b/nss_crypto.c
index fe44ba6..d9fd467 100644
--- a/nss_crypto.c
+++ b/nss_crypto.c
@@ -234,7 +234,7 @@
/*
* Kick the NSS awake so it can process our new entry.
*/
- nss_hal_send_interrupt(nss_ctx->nmap, nss_ctx->h2n_desc_rings[NSS_IF_DATA_QUEUE].desc_ring.int_bit,
+ nss_hal_send_interrupt(nss_ctx->nmap, nss_ctx->h2n_desc_rings[NSS_IF_DATA_QUEUE_0].desc_ring.int_bit,
NSS_REGS_H2N_INTR_STATUS_DATA_COMMAND_QUEUE);
NSS_PKT_STATS_INCREMENT(nss_ctx, &nss_ctx->nss_top->stats_drv[NSS_STATS_DRV_TX_CRYPTO_REQ]);