| 460 | } |
| 461 | |
| 462 | static int |
| 463 | ixgbe_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 | |
| 480 | static const struct rte_security_capability * |
nothing calls this directly
no test coverage detected