Home
last modified time | relevance | path

Searched refs:tun_ctx (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-6.6/net/netfilter/
H A Dnft_inner.c211 struct nft_inner_tun_ctx *tun_ctx) in nft_inner_parse()
228 *tun_ctx = ctx; in nft_inner_parse()
229 tun_ctx->type = priv->type; in nft_inner_parse()
237 const struct nft_inner_tun_ctx *tun_ctx) in nft_inner_parse_needed()
242 if (priv->type != tun_ctx->type) in nft_inner_parse_needed()
251 struct nft_inner_tun_ctx *tun_ctx = this_cpu_ptr(&nft_pcpu_tun_ctx); in nft_inner_eval() local
257 if (nft_inner_parse_needed(priv, pkt, tun_ctx) && in nft_inner_eval()
258 nft_inner_parse(priv, (struct nft_pktinfo *)pkt, tun_ctx) < 0) in nft_inner_eval()
263 nft_payload_inner_eval((struct nft_expr *)&priv->expr, regs, pkt, tun_ctx); in nft_inner_eval()
266 nft_meta_inner_eval((struct nft_expr *)&priv->expr, regs, pkt, tun_ctx); in nft_inner_eval()
209 nft_inner_parse(const struct nft_inner *priv, struct nft_pktinfo *pkt, struct nft_inner_tun_ctx *tun_ctx) nft_inner_parse() argument
235 nft_inner_parse_needed(const struct nft_inner *priv, const struct nft_pktinfo *pkt, const struct nft_inner_tun_ctx *tun_ctx) nft_inner_parse_needed() argument
[all...]
H A Dnft_payload.c606 struct nft_inner_tun_ctx *tun_ctx) in nft_payload_inner_eval()
618 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TUN)) in nft_payload_inner_eval()
621 offset = tun_ctx->inner_tunoff; in nft_payload_inner_eval()
624 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_LL)) in nft_payload_inner_eval()
627 offset = tun_ctx->inner_lloff; in nft_payload_inner_eval()
630 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_NH)) in nft_payload_inner_eval()
633 offset = tun_ctx->inner_nhoff; in nft_payload_inner_eval()
636 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TH)) in nft_payload_inner_eval()
639 offset = tun_ctx->inner_thoff; in nft_payload_inner_eval()
604 nft_payload_inner_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt, struct nft_inner_tun_ctx *tun_ctx) nft_payload_inner_eval() argument
H A Dnft_meta.c862 struct nft_inner_tun_ctx *tun_ctx) in nft_meta_inner_eval()
869 nft_reg_store16(dest, (__force u16)tun_ctx->llproto); in nft_meta_inner_eval()
872 if (!(tun_ctx->flags & NFT_PAYLOAD_CTX_INNER_TH)) in nft_meta_inner_eval()
875 nft_reg_store8(dest, tun_ctx->l4proto); in nft_meta_inner_eval()
859 nft_meta_inner_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt, struct nft_inner_tun_ctx *tun_ctx) nft_meta_inner_eval() argument
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnft_meta.h53 struct nft_inner_tun_ctx *tun_ctx);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
H A Dmad.c517 struct mlx4_ib_demux_pv_ctx *tun_ctx; in mlx4_ib_send_to_slave() local
535 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
538 if (!tun_ctx || tun_ctx->state != DEMUX_PV_STATE_ACTIVE) in mlx4_ib_send_to_slave()
542 tun_qp = &tun_ctx->qp[0]; in mlx4_ib_send_to_slave()
544 tun_qp = &tun_ctx->qp[1]; in mlx4_ib_send_to_slave()
587 ah = rdma_create_ah(tun_ctx->pd, &attr, 0); in mlx4_ib_send_to_slave()
655 list.lkey = tun_ctx->pd->local_dma_lkey; in mlx4_ib_send_to_slave()
/kernel/linux/linux-6.6/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()

Completed in 11 milliseconds