.TH "rte_ipsec_group.h" 3 "Version 25.11.0" "DPDK" \" -*- nroff -*-
.ad l
.nh
.SH NAME
rte_ipsec_group.h
.SH SYNOPSIS
.br
.PP
.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBrte_ipsec_group\fP"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "static struct \fBrte_ipsec_session\fP * \fBrte_ipsec_ses_from_crypto\fP (const struct \fBrte_crypto_op\fP *cop)"
.br
.ti -1c
.RI "static uint16_t \fBrte_ipsec_pkt_crypto_group\fP (const struct \fBrte_crypto_op\fP *cop[], struct \fBrte_mbuf\fP *mb[], struct \fBrte_ipsec_group\fP grp[], uint16_t num)"
.br
.in -1c
.SH "Detailed Description"
.PP 
RTE IPsec support\&. It is not recommended to include this file directly, include <\fBrte_ipsec\&.h\fP> instead\&. Contains helper functions to process completed crypto-ops and group related packets by sessions they belong to\&. 
.PP
Definition in file \fBrte_ipsec_group\&.h\fP\&.
.SH "Function Documentation"
.PP 
.SS "struct \fBrte_ipsec_session\fP * rte_ipsec_ses_from_crypto (const struct \fBrte_crypto_op\fP * cop)\fR [inline]\fP, \fR [static]\fP"
Take crypto-op as an input and extract pointer to related ipsec session\&. 
.PP
\fBParameters\fP
.RS 4
\fIcop\fP The address of an input \fI\fBrte_crypto_op\fP\fP structure\&. 
.RE
.PP
\fBReturns\fP
.RS 4
The pointer to the related \fI\fBrte_ipsec_session\fP\fP structure\&. 
.RE
.PP

.PP
Definition at line \fB45\fP of file \fBrte_ipsec_group\&.h\fP\&.
.SS "uint16_t rte_ipsec_pkt_crypto_group (const struct \fBrte_crypto_op\fP * cop[], struct \fBrte_mbuf\fP * mb[], struct \fBrte_ipsec_group\fP grp[], uint16_t num)\fR [inline]\fP, \fR [static]\fP"
Take as input completed crypto ops, extract related mbufs and group them by \fBrte_ipsec_session\fP they belong to\&. For mbuf which crypto-op wasn't completed successfully RTE_MBUF_F_RX_SEC_OFFLOAD_FAILED will be raised in ol_flags\&. Note that mbufs with undetermined SA (session-less) are not freed by the function, but are placed beyond mbufs for the last valid group\&. It is a user responsibility to handle them further\&. 
.PP
\fBParameters\fP
.RS 4
\fIcop\fP The address of an array of \fInum\fP pointers to the input \fI\fBrte_crypto_op\fP\fP structures\&. 
.br
\fImb\fP The address of an array of \fInum\fP pointers to output \fI\fBrte_mbuf\fP\fP structures\&. 
.br
\fIgrp\fP The address of an array of \fInum\fP to output \fI\fBrte_ipsec_group\fP\fP structures\&. 
.br
\fInum\fP The maximum number of crypto-ops to process\&. 
.RE
.PP
\fBReturns\fP
.RS 4
Number of filled elements in \fIgrp\fP array\&. 
.RE
.PP

.PP
Definition at line \fB82\fP of file \fBrte_ipsec_group\&.h\fP\&.
.SH "Author"
.PP 
Generated automatically by Doxygen for DPDK from the source code\&.
