bluetooth: controller: refactor node_rx_pdu for memory optimization
Generic node_rx_hdr struct contains data not used for done event, so this pdu specific data is moved to node_rx_pdu to minimize memory usage for MFIFO_done alloc. This however calls for a considerable write-through replacing the generic node_rx_hdr with node_rx_pdu when relevant and needed. Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
parent
eb133834ca
commit
dca085e155
50 changed files with 363 additions and 380 deletions
|
@ -850,7 +850,7 @@ static void test_iso_recv_main(void)
|
|||
printk("success.\n");
|
||||
|
||||
printk("Terminating BIG Sync...");
|
||||
struct node_rx_hdr *node_rx = NULL;
|
||||
struct node_rx_pdu *node_rx = NULL;
|
||||
err = ll_big_sync_terminate(big_handle, (void **)&node_rx);
|
||||
if (err) {
|
||||
FAIL("Could not terminate BIG sync: %d\n", err);
|
||||
|
@ -883,7 +883,7 @@ static void test_iso_recv_main(void)
|
|||
printk("success.\n");
|
||||
|
||||
if (node_rx) {
|
||||
node_rx->next = NULL;
|
||||
node_rx->hdr.next = NULL;
|
||||
ll_rx_mem_release((void **)&node_rx);
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue