mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
lib: Rename ofp to buf.
dpif-packet contains ofpbuf which points to packet data. Here buf is better name rather than ofp. Following patch renames all remaining instances of ofp variable. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
This commit is contained in:
@@ -206,8 +206,8 @@ dpdk_rte_mzalloc(size_t sz)
|
||||
void
|
||||
free_dpdk_buf(struct dpif_packet *p)
|
||||
{
|
||||
struct ofpbuf *ofp = &p->ofpbuf;
|
||||
struct rte_mbuf *pkt = (struct rte_mbuf *) ofp->dpdk_buf;
|
||||
struct ofpbuf *buf = &p->ofpbuf;
|
||||
struct rte_mbuf *pkt = (struct rte_mbuf *) buf->dpdk_buf;
|
||||
|
||||
rte_mempool_put(pkt->pool, pkt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user