Merge pull request #648 from cetic/pr-csma-fixes
High throughput fixes for csma and sixlowpan
This commit is contained in:
commit
6fb7dd238e
6 changed files with 91 additions and 41 deletions
|
@ -307,6 +307,16 @@ queuebuf_init(void)
|
|||
#endif /* QUEUEBUF_STATS */
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
queuebuf_numfree(void)
|
||||
{
|
||||
if(packetbuf_is_reference()) {
|
||||
return memb_numfree(&refbufmem);
|
||||
} else {
|
||||
return memb_numfree(&bufmem);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if QUEUEBUF_DEBUG
|
||||
struct queuebuf *
|
||||
queuebuf_new_from_packetbuf_debug(const char *file, int line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue