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

Function tun_process_step3

dpdk/lib/ipsec/esp_inb.c:560–569  ·  view source on GitHub ↗

* step three for tunnel mode: * update mbuf metadata: * - packet_type * - ol_flags * - tx_offload */

Source from the content-addressed store, hash-verified

558 * - tx_offload
559 */
560static inline void
561tun_process_step3(struct rte_mbuf *mb, uint64_t txof_msk, uint64_t txof_val)
562{
563 /* reset mbuf metadata: L2/L3 len, packet type */
564 mb->packet_type = RTE_PTYPE_UNKNOWN;
565 mb->tx_offload = (mb->tx_offload & txof_msk) | txof_val;
566
567 /* clear the RTE_MBUF_F_RX_SEC_OFFLOAD flag if set */
568 mb->ol_flags &= ~RTE_MBUF_F_RX_SEC_OFFLOAD;
569}
570
571/*
572 * *process* function for tunnel packets

Callers 1

tun_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected