summaryrefslogtreecommitdiff
path: root/xpp/xframe_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xframe_queue.c')
-rw-r--r--xpp/xframe_queue.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/xpp/xframe_queue.c b/xpp/xframe_queue.c
index abf9ee0..23dee0e 100644
--- a/xpp/xframe_queue.c
+++ b/xpp/xframe_queue.c
@@ -215,8 +215,16 @@ xframe_t *get_xframe(struct xframe_queue *q)
}
BUG_ON(xframe->xframe_magic != XFRAME_MAGIC);
atomic_set(&xframe->frame_len, 0);
+ xframe->first_free = xframe->packets;
do_gettimeofday(&xframe->tv_created);
- memset(xframe->packets, 0, xframe->frame_maxlen);
+ /*
+ * If later parts bother to correctly initialize their
+ * headers, there is no need to memset() the whole data.
+ *
+ * ticket:403
+ *
+ * memset(xframe->packets, 0, xframe->frame_maxlen);
+ */
//XBUS_INFO(xbus, "%s\n", __FUNCTION__);
return xframe;
}