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_ipv4.c b/nss_ipv4.c
index d6e811f..05bdea3 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -216,7 +216,7 @@
return NSS_TX_FAILURE;
}
- 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]++;
@@ -233,7 +233,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_warning("%p: unable to enqueue IPv4 msg\n", nss_ctx);
return NSS_TX_FAILURE;
}