MCPcopy Create free account
hub / github.com/F-Stack/f-stack / remove_sqh

Function remove_sqh

dpdk/lib/ipsec/crypto.h:289–300  ·  view source on GitHub ↗

* Helper function that moves ICV by 4B up, and removes SQN.hibits. * icv parameter points to the new start of ICV. */

Source from the content-addressed store, hash-verified

287 * icv parameter points to the new start of ICV.
288 */
289static inline void
290remove_sqh(void *picv, uint32_t icv_len)
291{
292 uint32_t i, *icv;
293
294 RTE_ASSERT(icv_len % sizeof(uint32_t) == 0);
295
296 icv = picv;
297 icv_len = icv_len / sizeof(uint32_t);
298 for (i = 0; i != icv_len; i++)
299 icv[i] = icv[i + 1];
300}
301
302/*
303 * setup crypto ops for LOOKASIDE_NONE (pure crypto) type of devices.

Callers 1

esp_outb_sqh_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected