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

Function ixgbe_crypto_update_mb

dpdk/drivers/net/ixgbe/ixgbe_ipsec.c:462–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static int
463ixgbe_crypto_update_mb(void *device __rte_unused,
464 struct rte_security_session *session,
465 struct rte_mbuf *m, void *params __rte_unused)
466{
467 struct ixgbe_crypto_session *ic_session = SECURITY_GET_SESS_PRIV(session);
468 if (ic_session->op == IXGBE_OP_AUTHENTICATED_ENCRYPTION) {
469 union ixgbe_crypto_tx_desc_md *mdata =
470 (union ixgbe_crypto_tx_desc_md *)
471 rte_security_dynfield(m);
472 mdata->enc = 1;
473 mdata->sa_idx = ic_session->sa_index;
474 mdata->pad_len = ixgbe_crypto_compute_pad_len(m);
475 }
476 return 0;
477}
478
479
480static const struct rte_security_capability *

Callers

nothing calls this directly

Calls 2

rte_security_dynfieldFunction · 0.85

Tested by

no test coverage detected