diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-10 18:12:27 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-10 18:12:27 +0000 |
commit | 9899bafe997a4e020f302c99a6e025b4e8b25191 (patch) | |
tree | 8a108b05d0f319c95ba83f1d5984ae261572bebf /xpp/xframe_queue.c | |
parent | 1d7d5b07325a186785b22abf09ff531dfc2edd54 (diff) |
xpp.r5254:
* Improved polarity reversal hangups in FXO (r5194).
Fixed false detection of polarity reversals.
* Optimize xframe allocation, by not zeroing the whole
memory (in get_xframe()).
* Fixed erronous error message that appeared sometimes
from fpga_load during USB renumeration.
* Zaptel::Chans now provides battery() reporting for some FXO
channels (Astribank FXO and wcfxo).
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3643 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xframe_queue.c')
-rw-r--r-- | xpp/xframe_queue.c | 10 |
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; } |