2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

dpif-netdev: use dpif_packet structure for packets

This commit introduces a new data structure used for receiving packets from
netdevs and passing them to dpifs.
The purpose of this change is to allow storing some private data for each
packet. The subsequent commits make use of it.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
Daniele Di Proietto
2014-06-23 11:43:57 -07:00
committed by Pravin B Shelar
parent 9441caf372
commit 910885540a
18 changed files with 277 additions and 96 deletions

View File

@@ -140,7 +140,9 @@ ofpbuf_uninit(struct ofpbuf *b)
} else if (b->source == OFPBUF_DPDK) {
#ifdef DPDK_NETDEV
ovs_assert(b != b->dpdk_buf);
free_dpdk_buf(b);
/* If this ofpbuf was allocated by DPDK it must have been
* created as a dpif_packet */
free_dpdk_buf((struct dpif_packet*) b);
#else
ovs_assert(b->source != OFPBUF_DPDK);
#endif