Home
last modified time | relevance | path

Searched refs:metalen (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/net/ife/
Dife.c30 __be16 metalen; member
34 void *ife_encode(struct sk_buff *skb, u16 metalen) in ife_encode() argument
39 int hdrm = metalen + IFE_METAHDRLEN; in ife_encode()
59 metalen += IFE_METAHDRLEN; in ife_encode()
60 ifehdr->metalen = htons(metalen); in ife_encode()
66 void *ife_decode(struct sk_buff *skb, u16 *metalen) in ife_decode() argument
76 ifehdrln = ntohs(ifehdr->metalen); in ife_decode()
88 *metalen = ifehdrln - IFE_METAHDRLEN; in ife_decode()
/linux-6.12.1/include/net/
Dife.h11 void *ife_encode(struct sk_buff *skb, u16 metalen);
12 void *ife_decode(struct sk_buff *skb, u16 *metalen);
23 static inline void *ife_encode(struct sk_buff *skb, u16 metalen) in ife_encode() argument
28 static inline void *ife_decode(struct sk_buff *skb, u16 *metalen) in ife_decode() argument
Dxdp.h370 static inline bool xdp_metalen_invalid(unsigned long metalen) in xdp_metalen_invalid() argument
377 return !IS_ALIGNED(metalen, sizeof(u32)) || metalen > meta_max; in xdp_metalen_invalid()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c228 u32 metalen = xdp->data - xdp->data_meta; in mlx5e_xsk_construct_skb() local
239 if (metalen) { in mlx5e_xsk_construct_skb()
240 skb_metadata_set(skb, metalen); in mlx5e_xsk_construct_skb()
241 __skb_pull(skb, metalen); in mlx5e_xsk_construct_skb()
/linux-6.12.1/net/sched/
Dact_ife.c719 u16 metalen; in tcf_ife_decode() local
727 tlv_data = ife_decode(skb, &metalen); in tcf_ife_decode()
733 ifehdr_end = tlv_data + metalen; in tcf_ife_decode()
796 u16 metalen = ife_get_sz(skb, ife); in tcf_ife_encode() local
797 int hdrm = metalen + skb->dev->hard_header_len + IFE_METAHDRLEN; in tcf_ife_encode()
812 if (!metalen) { /* no metadata to send */ in tcf_ife_encode()
829 ife_meta = ife_encode(skb, metalen); in tcf_ife_encode()
/linux-6.12.1/drivers/misc/
Dfastrpc.c882 static u64 fastrpc_get_payload_size(struct fastrpc_invoke_ctx *ctx, int metalen) in fastrpc_get_payload_size() argument
887 size = ALIGN(metalen, FASTRPC_ALIGN); in fastrpc_get_payload_size()
945 int metalen; in fastrpc_get_args() local
948 metalen = fastrpc_get_meta_size(ctx); in fastrpc_get_args()
949 pkt_size = fastrpc_get_payload_size(ctx, metalen); in fastrpc_get_args()
968 args = (uintptr_t)ctx->buf->virt + metalen; in fastrpc_get_args()
969 rlen = pkt_size - metalen; in fastrpc_get_args()
/linux-6.12.1/drivers/net/
Dveth.c771 u32 act, metalen; in veth_xdp_rcv_skb() local
855 metalen = xdp->data - xdp->data_meta; in veth_xdp_rcv_skb()
856 if (metalen) in veth_xdp_rcv_skb()
857 skb_metadata_set(skb, metalen); in veth_xdp_rcv_skb()
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1069 u8 metalen; in nfp_nsp_read_module_eeprom() member
1086 buf->metalen = in nfp_nsp_read_module_eeprom()
/linux-6.12.1/net/core/
Dfilter.c3933 unsigned long metalen = xdp_get_metalen(xdp); in BPF_CALL_2() local
3934 void *data_start = xdp_frame_end + metalen; in BPF_CALL_2()
3941 if (metalen) in BPF_CALL_2()
3943 xdp->data_meta, metalen); in BPF_CALL_2()
4230 unsigned long metalen = xdp->data - meta; in BPF_CALL_2() local
4237 if (unlikely(xdp_metalen_invalid(metalen))) in BPF_CALL_2()
Ddev.c4940 u32 metalen, act; in bpf_prog_run_generic_xdp() local
5024 metalen = xdp->data - xdp->data_meta; in bpf_prog_run_generic_xdp()
5025 if (metalen) in bpf_prog_run_generic_xdp()
5026 skb_metadata_set(skb, metalen); in bpf_prog_run_generic_xdp()
/linux-6.12.1/fs/ext4/
Dmballoc.c3328 int metalen = 0; in ext4_mb_add_groupinfo() local
3340 metalen = sizeof(*meta_group_info) << in ext4_mb_add_groupinfo()
3342 meta_group_info = kmalloc(metalen, GFP_NOFS); in ext4_mb_add_groupinfo()