summaryrefslogtreecommitdiff
path: root/lib/dp-packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dp-packet.h')
-rw-r--r--lib/dp-packet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index ed1e5b3f6..b3e6a5d10 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -257,7 +257,11 @@ dp_packet_delete(struct dp_packet *b)
}
dp_packet_uninit(b);
+#ifdef DPDK_NETDEV
+ free_cacheline(b);
+#else
free(b);
+#endif
}
}