Details:
- The memcpy() call copied part of "dahdi_conf" and not "dahdi_conf.mfcr2"
- As a result, the memcmp() in dahdi_r2_get_link() always fails
- This cause dahdi_r2_get_link() to create new link for every channel
(instead of a new link for every ~30 channels)
- With the fix, far less links are generated -- so we use far less threads
Change-Id: I7259dd6272f5e46e8a6c7f5bf3e8c2ec01b8c132
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
}
}
/* Save the configuration used to setup this link */
- memcpy(&r2_link->conf, conf, sizeof(r2_link->conf));
+ memcpy(&r2_link->conf, &conf->mfcr2, sizeof(r2_link->conf));
return 0;
}
#endif