e1oip: introduce #defines for BATCHING_FACTOR / PREFILL_COUNT

Change-Id: Ia0da9b038312b010bfdf88570733bf1bf004b7a8
This commit is contained in:
Harald Welte 2022-05-08 09:07:41 +02:00
parent 25945a818b
commit d78ddab9ff
2 changed files with 5 additions and 2 deletions

View File

@ -302,8 +302,8 @@ struct e1oip_line *e1oip_line_alloc(struct octoi_peer *peer)
iline->stats = osmo_stat_item_group_alloc(iline, &iline_stats_desc, ctr_idx);
e1oip_line_set_name(iline, peer->name);
iline->cfg.batching_factor = 32;
iline->cfg.prefill_frame_count = 200; /* 25ms */
iline->cfg.batching_factor = DEFAULT_BATCHING_FACTOR;
iline->cfg.prefill_frame_count = DEFAULT_PREFILL_FRAME_COUNT;
e1oip_line_reset(iline);

View File

@ -15,6 +15,9 @@
#define FRAMES_PER_SEC_THRESHOLD 7500
#define DEFAULT_BATCHING_FACTOR 32
#define DEFAULT_PREFILL_FRAME_COUNT 200 /* 25ms */
enum e1oip_line_ctr {
LINE_CTR_E1oIP_UNDERRUN,
LINE_CTR_E1oIP_SUBSTITUTED,