2
0
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:
Pravin B Shelar
2014-06-24 13:00:52 -07:00
parent 5640cbd8bd
commit e381def971
3 changed files with 14 additions and 14 deletions

View File

@@ -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);
}