/* Return cache if it matches with size and tag of stored caches, otherwise return NULL.  */
static struct frag_cache* get_reass_cache(uint16_t size, uint16_t tag)
/* Return cache if it matches with size and tag of stored caches, otherwise return NULL.  */
static struct frag_cache* get_reass_cache(uint16_t size, uint16_t tag)
{
	uint8_t i;
	for (i = 0U; i < REASS_CACHE_SIZE; i++) {
		if (cache[i].used) {
			if (cache[i].size == size && cache[i].tag == tag) {
				return &cache[i];
			}
		}
	}
	return NULL;
}