Home
last modified time | relevance | path

Searched refs:tun_ctx (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/net/netfilter/
H A Dnft_inner.c211 struct nft_inner_tun_ctx *tun_ctx) in nft_inner_parse() argument
216 nft_inner_parse_tunhdr(priv, pkt, tun_ctx, &off) < 0) in nft_inner_parse()
220 if (nft_inner_parse_l2l3(priv, pkt, tun_ctx, off) < 0) in nft_inner_parse()
223 tun_ctx->inner_thoff = off; in nft_inner_parse()
224 tun_ctx->flags |= NFT_PAYLOAD_CTX_INNER_TH; in nft_inner_parse()
227 tun_ctx->type = priv->type; in nft_inner_parse()
228 tun_ctx->cookie = (unsigned long)pkt->skb; in nft_inner_parse()
235 struct nft_inner_tun_ctx *tun_ctx) in nft_inner_restore_tun_ctx() argument
245 *tun_ctx = *this_cpu_tun_ctx; in nft_inner_restore_tun_ctx()
252 const struct nft_inner_tun_ctx *tun_ctx) in nft_inner_save_tun_ctx() argument
[all …]
H A Dnft_payload.c597 struct nft_inner_tun_ctx *tun_ctx) in nft_payload_inner_eval() argument
609 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TUN)) in nft_payload_inner_eval()
612 offset = tun_ctx->inner_tunoff; in nft_payload_inner_eval()
615 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_LL)) in nft_payload_inner_eval()
618 offset = tun_ctx->inner_lloff; in nft_payload_inner_eval()
621 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_NH)) in nft_payload_inner_eval()
624 offset = tun_ctx->inner_nhoff; in nft_payload_inner_eval()
627 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TH)) in nft_payload_inner_eval()
630 offset = tun_ctx->inner_thoff; in nft_payload_inner_eval()
H A Dnft_meta.c865 struct nft_inner_tun_ctx *tun_ctx) in nft_meta_inner_eval() argument
872 nft_reg_store16(dest, (__force u16)tun_ctx->llproto); in nft_meta_inner_eval()
875 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TH)) in nft_meta_inner_eval()
878 nft_reg_store8(dest, tun_ctx->l4proto); in nft_meta_inner_eval()
/openbmc/linux/include/net/netfilter/
H A Dnft_meta.h53 struct nft_inner_tun_ctx *tun_ctx);
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c518 struct mlx4_ib_demux_pv_ctx *tun_ctx; in mlx4_ib_send_to_slave() local
536 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
539 if (!tun_ctx || tun_ctx->state != DEMUX_PV_STATE_ACTIVE) in mlx4_ib_send_to_slave()
543 tun_qp = &tun_ctx->qp[0]; in mlx4_ib_send_to_slave()
545 tun_qp = &tun_ctx->qp[1]; in mlx4_ib_send_to_slave()
588 ah = rdma_create_ah(tun_ctx->pd, &attr, 0); in mlx4_ib_send_to_slave()
656 list.lkey = tun_ctx->pd->local_dma_lkey; in mlx4_ib_send_to_slave()