Removing support for SKB recycler in NSS.
SMP support is now added to Linux SKB recycler.
This reverts commit ce98bbe8dba2fce918e46b1935706e1e3ea248e0.
CRs-Fixed: 724894
Change-Id: Ie269d9dca8ce69305e8e2ce7bdbc15862e0344d7
Signed-off-by: Pamidipati, Vijay <vpamidip@codeaurora.org>
diff --git a/nss_crypto.c b/nss_crypto.c
index e0820e6..d9fd467 100644
--- a/nss_crypto.c
+++ b/nss_crypto.c
@@ -177,7 +177,7 @@
return NSS_TX_FAILURE_BAD_PARAM;
}
- nbuf = nss_skb_alloc(NSS_NBUF_PAYLOAD_SIZE);
+ nbuf = dev_alloc_skb(NSS_NBUF_PAYLOAD_SIZE);
if (unlikely(!nbuf)) {
spin_lock_bh(&nss_ctx->nss_top->stats_lock);
nss_ctx->nss_top->stats_drv[NSS_STATS_DRV_NBUF_ALLOC_FAILS]++;
@@ -194,7 +194,7 @@
status = nss_core_send_buffer(nss_ctx, 0, nbuf, NSS_IF_CMD_QUEUE, H2N_BUFFER_CTRL, 0);
if (status != NSS_CORE_STATUS_SUCCESS) {
- nss_skb_free(nbuf);
+ dev_kfree_skb_any(nbuf);
nss_crypto_warning("%p: Unable to enqueue message\n", nss_ctx);
return NSS_TX_FAILURE;
}