src/dpdk/lib/librte_ipsec/esp_outb.c
static inline void
inline_outb_mbuf_prepare(const struct rte_ipsec_session *ss,
	struct rte_mbuf *mb[], uint16_t num)
{
	uint32_t i, ol_flags;

	ol_flags = ss->security.ol_flags & RTE_SECURITY_TX_OLOAD_NEED_MDATA;
	for (i = 0; i != num; i++) {

		mb[i]->ol_flags |= PKT_TX_SEC_OFFLOAD;
		if (ol_flags != 0)
			rte_security_set_pkt_metadata(ss->security.ctx,
				ss->security.ses, mb[i], NULL);
	}
}
/*
 * prepare packets for inline ipsec processing:
 * set ol_flags and attach metadata.
 */
prepare packets for inline ipsec processing:
set ol_flags and attach metadata.
prepare packets for inline ipsec processing : set ol_flags and attach metadata .
static inline void
inline_outb_mbuf_prepare(const struct rte_ipsec_session *ss,
	struct rte_mbuf *mb[], uint16_t num)
{
	uint32_t i, ol_flags;
	ol_flags = ss->security.ol_flags & RTE_SECURITY_TX_OLOAD_NEED_MDATA;
	for (i = 0; i != num; i++) {
		mb[i]->ol_flags |= PKT_TX_SEC_OFFLOAD;
		if (ol_flags != 0)
			rte_security_set_pkt_metadata(ss->security.ctx,
				ss->security.ses, mb[i], NULL);
	}
}
static inline void inline_outb_mbuf_prepare ( const struct rte_ipsec_session * ss , struct rte_mbuf * mb [ ] , uint16_t num ) { uint32_t i , ol_flags ; ol_flags = ss -> security . ol_flags & RTE_SECURITY_TX_OLOAD_NEED_MDATA ; for ( i = 0 ; i != num ; i ++ ) { mb [ i ] -> ol_flags |= PKT_TX_SEC_OFFLOAD ; if ( ol_flags != 0 ) rte_security_set_pkt_metadata ( ss -> security . ctx , ss -> security . ses , mb [ i ] , NULL ) ; } }
prepare packets for inline ipsec processing:
 set ol_flags and attach metadata.
prepare packets for inline ipsec processing : set ol_flags and attach metadata .