@@ -130,22 +130,15 @@ namespace chip {
130
130
#if CHIP_SYSTEM_CONFIG_USE_LWIP
131
131
132
132
#if !LWIP_PBUF_FROM_CUSTOM_POOLS && PBUF_POOL_SIZE != 0
133
- // Configure the table size to be less than the number of packet buffers to make sure
134
- // that not all buffers are held by the retransmission entries, in which case the device
135
- // is unable to receive an ACK and hence becomes unavailable until a message times out.
136
- #define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE std::min (PBUF_POOL_SIZE - 1 , CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS)
133
+ #define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE std::min (PBUF_POOL_SIZE, CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS)
137
134
#else
138
135
#define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS
139
136
#endif // !LWIP_PBUF_FROM_CUSTOM_POOLS && PBUF_POOL_SIZE != 0
140
137
141
138
#else // CHIP_SYSTEM_CONFIG_USE_LWIP
142
139
143
140
#if CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE != 0
144
- // Configure the table size to be less than the number of packet buffers to make sure
145
- // that not all buffers are held by the retransmission entries, in which case the device
146
- // is unable to receive an ACK and hence becomes unavailable until a message times out.
147
- #define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE \
148
- std::min (CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE - 1 , CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS)
141
+ #define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE std::min (CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE, CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS)
149
142
#else
150
143
#define CHIP_CONFIG_RMP_RETRANS_TABLE_SIZE CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS
151
144
#endif // CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE != 0
0 commit comments