summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dp-packet.c6
-rw-r--r--lib/dp-packet.h4
-rw-r--r--lib/netdev-dpdk.h5
3 files changed, 2 insertions, 13 deletions
diff --git a/lib/dp-packet.c b/lib/dp-packet.c
index 4538d2a61..61e405460 100644
--- a/lib/dp-packet.c
+++ b/lib/dp-packet.c
@@ -134,11 +134,7 @@ dp_packet_uninit(struct dp_packet *b)
if (b->source == DPBUF_MALLOC) {
free(dp_packet_base(b));
} else if (b->source == DPBUF_DPDK) {
-#ifdef DPDK_NETDEV
- /* If this dp_packet was allocated by DPDK it must have been
- * created as a dp_packet */
- free_dpdk_buf((struct dp_packet*) b);
-#endif
+ free_dpdk_buf(b);
} else if (b->source == DPBUF_AFXDP) {
free_afxdp_buf(b);
}
diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index 55eeaab2c..a8ea5b40f 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -247,9 +247,7 @@ dp_packet_delete(struct dp_packet *b)
{
if (b) {
if (b->source == DPBUF_DPDK) {
- /* If this dp_packet was allocated by DPDK it must have been
- * created as a dp_packet */
- free_dpdk_buf((struct dp_packet*) b);
+ free_dpdk_buf(b);
return;
}
diff --git a/lib/netdev-dpdk.h b/lib/netdev-dpdk.h
index 7d2f64af2..5cd95d00f 100644
--- a/lib/netdev-dpdk.h
+++ b/lib/netdev-dpdk.h
@@ -151,11 +151,6 @@ netdev_dpdk_rte_flow_tunnel_item_release(
#else
static inline void
-netdev_dpdk_register(const struct smap *ovs_other_config OVS_UNUSED)
-{
- /* Nothing */
-}
-static inline void
free_dpdk_buf(struct dp_packet *buf OVS_UNUSED)
{
/* Nothing */