comparison libfdcore/fdd.y @ 1397:239ba25870d8

Allow parametrizing the number of threads for routing in/out. This is for high-load situations where freeDiameter was limited by the corresponding queues.
author Thomas Klausner <tk@giga.or.at>
date Fri, 15 Nov 2019 11:40:37 +0100
parents 188c82b6690b
children 566bb46cc73f
comparison
equal deleted inserted replaced
1396:188c82b6690b 1397:239ba25870d8
105 %token PREFERTCP 105 %token PREFERTCP
106 %token OLDTLS 106 %token OLDTLS
107 %token NOTLS 107 %token NOTLS
108 %token SCTPSTREAMS 108 %token SCTPSTREAMS
109 %token APPSERVTHREADS 109 %token APPSERVTHREADS
110 %token ROUTINGINTHREADS
111 %token ROUTINGOUTTHREADS
112 %token QINLIMIT
113 %token QOUTLIMIT
114 %token QLOCALLIMIT
110 %token LISTENON 115 %token LISTENON
111 %token THRPERSRV 116 %token THRPERSRV
112 %token PROCESSINGPEERSPATTERN 117 %token PROCESSINGPEERSPATTERN
113 %token PROCESSINGPEERSMINIMUM 118 %token PROCESSINGPEERSMINIMUM
114 %token TCTIMER 119 %token TCTIMER
145 | conffile thrpersrv 150 | conffile thrpersrv
146 | conffile processingpeerspattern 151 | conffile processingpeerspattern
147 | conffile processingpeersminimum 152 | conffile processingpeersminimum
148 | conffile norelay 153 | conffile norelay
149 | conffile appservthreads 154 | conffile appservthreads
155 | conffile routinginthreads
156 | conffile routingoutthreads
157 | conffile qinlimit
158 | conffile qoutlimit
159 | conffile qlocallimit
150 | conffile noip 160 | conffile noip
151 | conffile noip6 161 | conffile noip6
152 | conffile notcp 162 | conffile notcp
153 | conffile nosctp 163 | conffile nosctp
154 | conffile prefertcp 164 | conffile prefertcp
304 appservthreads: APPSERVTHREADS '=' INTEGER ';' 314 appservthreads: APPSERVTHREADS '=' INTEGER ';'
305 { 315 {
306 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 256), 316 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 256),
307 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 317 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
308 conf->cnf_dispthr = (uint16_t)$3; 318 conf->cnf_dispthr = (uint16_t)$3;
319 }
320 ;
321
322 routinginthreads: ROUTINGINTHREADS '=' INTEGER ';'
323 {
324 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 256),
325 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
326 conf->cnf_rtinthr = (uint16_t)$3;
327 }
328 ;
329
330 routingoutthreads: ROUTINGOUTTHREADS '=' INTEGER ';'
331 {
332 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 256),
333 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
334 conf->cnf_rtoutthr = (uint16_t)$3;
335 }
336 ;
337
338 qinlimit: QINLIMIT '=' INTEGER ';'
339 {
340 CHECK_PARAMS_DO( ($3 >= 0),
341 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
342 conf->cnf_qin_limit = $3;
343 }
344 ;
345
346 qoutlimit: QOUTLIMIT '=' INTEGER ';'
347 {
348 CHECK_PARAMS_DO( ($3 >= 0),
349 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
350 conf->cnf_qout_limit = $3;
351 }
352 ;
353
354 qlocallimit: QLOCALLIMIT '=' INTEGER ';'
355 {
356 CHECK_PARAMS_DO( ($3 >= 0),
357 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
358 conf->cnf_qlocal_limit = $3;
309 } 359 }
310 ; 360 ;
311 361
312 noip: NOIP ';' 362 noip: NOIP ';'
313 { 363 {
"Welcome to our mercurial repository"