summaryrefslogtreecommitdiff
path: root/ofproto/pktbuf.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2015-02-22 03:21:09 -0800
committerPravin B Shelar <pshelar@nicira.com>2015-03-03 13:37:37 -0800
commitcf62fa4c7074121184a1f1d07980990113657612 (patch)
tree1d1b25bf0222b0b8e62d546f4d56ad366b84abed /ofproto/pktbuf.h
parente14deea0bd133796872d06f39a14d0393880f5bb (diff)
downloadopenvswitch-cf62fa4c7074121184a1f1d07980990113657612.tar.gz
dp-packet: Remove ofpbuf dependency.
Currently dp-packet make use of ofpbuf for managing packet buffers. That complicates ofpbuf, by making dp-packet independent of ofpbuf both libraries can be optimized for their own use case. This avoids mapping operation between ofpbuf and dp_packet in datapath upcalls. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/pktbuf.h')
-rw-r--r--ofproto/pktbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/pktbuf.h b/ofproto/pktbuf.h
index eb1b1fff3..a5cbcd64c 100644
--- a/ofproto/pktbuf.h
+++ b/ofproto/pktbuf.h
@@ -23,7 +23,7 @@
#include "ofp-errors.h"
struct pktbuf;
-struct ofpbuf;
+struct dp_packet;
int pktbuf_capacity(void);
@@ -33,7 +33,7 @@ uint32_t pktbuf_save(struct pktbuf *, const void *buffer, size_t buffer_size,
ofp_port_t in_port);
uint32_t pktbuf_get_null(void);
enum ofperr pktbuf_retrieve(struct pktbuf *, uint32_t id,
- struct ofpbuf **bufferp, ofp_port_t *in_port);
+ struct dp_packet **bufferp, ofp_port_t *in_port);
void pktbuf_discard(struct pktbuf *, uint32_t id);
unsigned int pktbuf_count_packets(const struct pktbuf *);