diff options
author | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-07-27 19:33:29 +0100 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-10-28 17:35:21 +0000 |
commit | 705e95d3bd3985cdb341de3e3067bf49cbc5c3e2 (patch) | |
tree | 9868d430868281831185d6f0ea5e8b8a5f1c24ce | |
parent | 567fe6d60cdc1b9f4030b2f4c2fa2ab3b59f5ffc (diff) |
dp-packet: implement dp_packet_base()
It should return a pointer to the beginning of headroom.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Reviewed-by: Ciprian Barbu <ciprian.barbu@enea.com>
Reviewed-by: Santosh Shukla <santosh.shukla@linaro.org>
-rw-r--r-- | lib/dp-packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dp-packet.h b/lib/dp-packet.h index 07c05c31c..24ea7dfdd 100644 --- a/lib/dp-packet.h +++ b/lib/dp-packet.h @@ -458,7 +458,7 @@ dp_packet_base(const struct dp_packet *b) { #ifdef ODP_NETDEV if (b->source == DPBUF_ODP) - ovs_abort(0, "ODP: Invalid use of dp_packet_base\n"); + return odp_packet_head(b->odp_pkt); #endif return b->base_; |