Skip to content

Commit

Permalink
Wi-sun RPL memory soft and hard limit update
Browse files Browse the repository at this point in the history
Set more RAM for for Wi-sun RPL router from 2/4 to 3/6

Change-Id: I0ecf8ccef192b48acc534677608016d92985614a
  • Loading branch information
Juha Heiskanen committed Feb 19, 2020
1 parent c8560db commit 18247d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,9 @@ static void ws_bootstrap_rpl_activate(protocol_interface_info_entry_t *cur)
rpl_control_set_dao_retry_count(WS_MAX_DAO_RETRIES);
rpl_control_set_initial_dao_ack_wait(WS_MAX_DAO_INITIAL_TIMEOUT);
rpl_control_set_mrhof_parent_set_size(WS_MAX_PARENT_SET_COUNT);
if (cur->bootsrap_mode != ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
rpl_control_set_memory_limits(WS_NODE_RPL_SOFT_MEM_LIMIT, WS_NODE_RPL_HARD_MEM_LIMIT);
}

cur->ws_info->rpl_state = 0xff; // Set invalid state and learn from event
}
Expand Down
3 changes: 3 additions & 0 deletions source/6LoWPAN/ws/ws_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ extern uint8_t DEVICE_MIN_SENS;
#define WS_MIN_DIO_MULTICAST_CONFIG_ADVERTISMENT_COUNT 0xff // Advertisment config at every MC DIO
#define WS_MAX_PARENT_SET_COUNT 2 // maximum amount of parents selected by node

#define WS_NODE_RPL_SOFT_MEM_LIMIT 4*1024 // Limit when RPL start purge unused data
#define WS_NODE_RPL_HARD_MEM_LIMIT 6*1024 // Limit when RPL memory allocation start limit allocation

/*
* Candidate parent list parameters
*/
Expand Down

0 comments on commit 18247d5

Please sign in to comment.