dp_packet_batch_clone(struct dp_packet_batch *dst,
                      struct dp_packet_batch *src)
{
    int i;

    for (i = 0; i < src->count; i++) {
        dst->packets[i] = dp_packet_clone(src->packets[i]);
    }
    dst->count = src->count;
    dst->trunc = src->trunc;
}
dp_packet_batch_clone(struct dp_packet_batch *dst,
                      struct dp_packet_batch *src)
{
    int i;

    for (i = 0; i < src->count; i++) {
        dst->packets[i] = dp_packet_clone(src->packets[i]);
    }
    dst->count = src->count;
    dst->trunc = src->trunc;
}