comparison rvinterf/include/limits.h @ 958:ca6e969be6ee

rvinterf suite: raise MAX_PKT_FROM_TARGET to 1600
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 02:47:48 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
957:e030327b6a9a 958:ca6e969be6ee
18 * definition easily visible in the target fw code: any fw component 18 * definition easily visible in the target fw code: any fw component
19 * can call rvt_send_trace_cpy() or rvt_mem_alloc() followed by 19 * can call rvt_send_trace_cpy() or rvt_mem_alloc() followed by
20 * rvt_send_trace_no_cpy(), or some higher-level API that reduces to 20 * rvt_send_trace_no_cpy(), or some higher-level API that reduces to
21 * these functions, with a message of any size, subject only to memory 21 * these functions, with a message of any size, subject only to memory
22 * limits, which obviously aren't as strict as a #define'd maximum 22 * limits, which obviously aren't as strict as a #define'd maximum
23 * message size. Hence in this direction we use our own arbitrary 23 * message size.
24 * choice of size limit. 24 *
25 * With current FreeCalypso fw, unchanged from classic TCS211 in this
26 * aspect, the largest RVTMUX packets emitted by the fw are G23M PS
27 * primitives forwarded externally via GPF routing mechanism, and some
28 * of them exceed our previous arbitrary limit of 512 bytes. However,
29 * the largest output packet size that can be generated via this
30 * mechanism equals the largest partition size in GPF partition pool
31 * configuration, and that largest size is 1600 bytes. Hence we have
32 * our answer as to what maximum packet size we need to support.
25 */ 33 */
26 34
27 #define MAX_PKT_FROM_TARGET 512 35 #define MAX_PKT_FROM_TARGET 1600
28 36
29 /* 37 /*
30 * Both limit definitions above counts all bytes between the opening and 38 * Both limit definitions above counts all bytes between the opening and
31 * closing STX flags, but not DLEs inserted for binary transparency. 39 * closing STX flags, but not DLEs inserted for binary transparency.
32 */ 40 */