diff options
author | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-07-27 19:42:40 +0100 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-08-04 17:48:28 +0100 |
commit | 862310b8355a8956db56cbe47ff84e880f564499 (patch) | |
tree | b8ab0fc7a36f2dfd4f9155c16a81186ee1852154 | |
parent | 4c30dd1ee659328ba395eb0d2fd41fad2b3f9e16 (diff) |
dp-packet: simplify dp_packet_init_odp()
We only need to set the 'source' field during receive. 'allocated' now uses
the right accessors, the offsets and pad_size are reset in miniflow_extract
before used, and the metadata is set in dp_netdev_process_rxq_port() after
receive.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Reviewed-by: Santosh Shukla <santosh.shukla@linaro.org>
Reviewed-by: Ciprian Barbu <ciprian.barbu@enea.com>
-rw-r--r-- | lib/dp-packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dp-packet.c b/lib/dp-packet.c index 7509c44a8..7cb150009 100644 --- a/lib/dp-packet.c +++ b/lib/dp-packet.c @@ -102,9 +102,9 @@ dp_packet_init_dpdk(struct dp_packet *b, size_t allocated) #ifdef ODP_NETDEV void -dp_packet_init_odp(struct dp_packet *b, size_t allocated) +dp_packet_init_odp(struct dp_packet *b, size_t allocated OVS_UNUSED) { - dp_packet_init__(b, allocated, DPBUF_ODP); + b->source = DPBUF_ODP; } #endif |