[ovs-dev] [PATCH] dp-packet: Copy trunc flug on batch clone.
Ilya Maximets
i.maximets at samsung.com
Fri Jun 30 10:05:54 UTC 2017
Without this applying of the cutlen action will not work
on copied batch. Cutlen works for linux and dummy netdevs
only because they tries to apply it per-packet inside
send function.
Cutlen action doesn't work for dpdk ports in case batch clone
occured because invoked by the batch apply action.
CC: Andy Zhou <azhou at ovn.org>
Fixes: 72c84bc2db23 ("dp-packet: Enhance packet batch APIs.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
lib/dp-packet.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index d2549b1..38282bd 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -739,6 +739,7 @@ dp_packet_batch_clone(struct dp_packet_batch *dst,
DP_PACKET_BATCH_FOR_EACH (packet, src) {
dp_packet_batch_add(dst, dp_packet_clone(packet));
}
+ dst->trunc = src->trunc;
}
static inline void
--
2.7.4
More information about the dev
mailing list