Lines Matching refs:pctx
52 FillOutPacketEthContext(struct pkt_ctx *pctx, uint32_t cur_ts, int out_ifidx, in FillOutPacketEthContext() argument
55 pctx->p.cur_ts = cur_ts; in FillOutPacketEthContext()
56 pctx->p.in_ifidx = -1; in FillOutPacketEthContext()
57 pctx->out_ifidx = out_ifidx; in FillOutPacketEthContext()
58 pctx->p.ethh = ethh; in FillOutPacketEthContext()
59 pctx->p.eth_len = eth_len; in FillOutPacketEthContext()
63 EthernetOutput(struct mtcp_manager *mtcp, struct pkt_ctx *pctx, in EthernetOutput() argument
97 if (pctx) in EthernetOutput()
98 FillOutPacketEthContext(pctx, cur_ts, nif, in EthernetOutput()
105 ForwardEthernetFrame(struct mtcp_manager *mtcp, struct pkt_ctx *pctx) in ForwardEthernetFrame() argument
110 pctx->out_ifidx = in ForwardEthernetFrame()
111 g_config.mos->nic_forward_table->nic_fwd_table[pctx->p.in_ifidx]; in ForwardEthernetFrame()
113 if (pctx->out_ifidx == -1) { in ForwardEthernetFrame()
123 buf = mtcp->iom->get_wptr(mtcp->ctx, pctx->out_ifidx, pctx->p.eth_len); in ForwardEthernetFrame()
130 memcpy(buf, pctx->p.ethh, pctx->p.eth_len); in ForwardEthernetFrame()