src/dpdk/lib/librte_ipsec/crypto.h
static inline void
insert_sqh(uint32_t sqh, void *picv, uint32_t icv_len)
{
	uint32_t *icv;
	int32_t i;

	RTE_ASSERT(icv_len % sizeof(uint32_t) == 0);

	icv = picv;
	icv_len = icv_len / sizeof(uint32_t);
	for (i = icv_len; i-- != 0; icv[i] = icv[i - 1])
		;

	icv[i] = sqh;
}
/*
 * Helper function that moves ICV by 4B below, and inserts SQN.hibits.
 * icv parameter points to the new start of ICV.
 */
Helper function that moves ICV by 4B below, and inserts SQN.hibits.
icv parameter points to the new start of ICV.
Helper function that moves ICV by 4B below and inserts SQN . hibits . icv parameter points to the new start of ICV .
static inline void
insert_sqh(uint32_t sqh, void *picv, uint32_t icv_len)
{
	uint32_t *icv;
	int32_t i;
	RTE_ASSERT(icv_len % sizeof(uint32_t) == 0);
	icv = picv;
	icv_len = icv_len / sizeof(uint32_t);
	for (i = icv_len; i-- != 0; icv[i] = icv[i - 1])
		;
	icv[i] = sqh;
}
static inline void insert_sqh ( uint32_t sqh , void * picv , uint32_t icv_len ) { uint32_t * icv ; int32_t i ; RTE_ASSERT ( icv_len % sizeof ( uint32_t ) == 0 ) ; icv = picv ; icv_len = icv_len / sizeof ( uint32_t ) ; for ( i = icv_len ; i -- != 0 ; icv [ i ] = icv [ i - 1 ] ) ; icv [ i ] = sqh ; }
Helper function that moves ICV by 4B below, and inserts SQN.hibits.
Helper function that moves ICV by 4B below and inserts SQN . hibits .