Reduce the number of buffered packets when UE is in idle.

FIXME: Need to be adjusted when the number of clbuf is increased.
This commit is contained in:
James Park 2018-04-12 10:11:17 -07:00
parent 539d0c7bc5
commit e5a0b1ff69
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ typedef struct _sgw_bearer_t {
/* Pkts which will be buffered in case of UE-IDLE */
c_uint32_t num_buffered_pkt;
#define MAX_NUM_BUFFER_PKT 512
/* FIXME: The value should be depdendant on the clbuf number. */
#define MAX_NUM_BUFFER_PKT 10
pkbuf_t* buffered_pkts[MAX_NUM_BUFFER_PKT];
list_t tunnel_list;