Searched refs:metalen (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/net/ife/ |
D | ife.c | 30 __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() 87 *metalen = ifehdrln - IFE_METAHDRLEN; in ife_decode()
|
/Linux-v5.4/include/net/ |
D | ife.h | 11 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
|
/Linux-v5.4/net/xdp/ |
D | xsk.c | 122 u32 len, u32 metalen) in __xsk_rcv_memcpy() argument 127 if (xskq_crosses_non_contig_pg(umem, addr, len + metalen)) { in __xsk_rcv_memcpy() 132 memcpy(to_buf, from_buf, first_len + metalen); in __xsk_rcv_memcpy() 138 memcpy(to_buf, from_buf, len + metalen); in __xsk_rcv_memcpy() 146 u32 metalen; in __xsk_rcv() local 157 metalen = 0; in __xsk_rcv() 160 metalen = xdp->data - xdp->data_meta; in __xsk_rcv() 164 __xsk_rcv_memcpy(xs->umem, memcpy_addr, from_buf, len, metalen); in __xsk_rcv() 166 offset += metalen; in __xsk_rcv() 223 u32 metalen = xdp->data - xdp->data_meta; in xsk_generic_rcv() local [all …]
|
/Linux-v5.4/net/sched/ |
D | act_ife.c | 697 u16 metalen; in tcf_ife_decode() local 705 tlv_data = ife_decode(skb, &metalen); in tcf_ife_decode() 711 ifehdr_end = tlv_data + metalen; in tcf_ife_decode() 774 u16 metalen = ife_get_sz(skb, ife); in tcf_ife_encode() local 775 int hdrm = metalen + skb->dev->hard_header_len + IFE_METAHDRLEN; in tcf_ife_encode() 790 if (!metalen) { /* no metadata to send */ in tcf_ife_encode() 807 ife_meta = ife_encode(skb, metalen); in tcf_ife_encode()
|
/Linux-v5.4/drivers/misc/ |
D | fastrpc.c | 693 static u64 fastrpc_get_payload_size(struct fastrpc_invoke_ctx *ctx, int metalen) in fastrpc_get_payload_size() argument 698 size = ALIGN(metalen, FASTRPC_ALIGN); in fastrpc_get_payload_size() 747 int metalen; in fastrpc_get_args() local 750 metalen = fastrpc_get_meta_size(ctx); in fastrpc_get_args() 751 pkt_size = fastrpc_get_payload_size(ctx, metalen); in fastrpc_get_args() 767 args = (uintptr_t)ctx->buf->virt + metalen; in fastrpc_get_args() 768 rlen = pkt_size - metalen; in fastrpc_get_args()
|
/Linux-v5.4/drivers/net/ |
D | veth.c | 597 u32 pktlen, headroom, act, metalen; in veth_xdp_rcv_skb() local 710 metalen = xdp.data - xdp.data_meta; in veth_xdp_rcv_skb() 711 if (metalen) in veth_xdp_rcv_skb() 712 skb_metadata_set(skb, metalen); in veth_xdp_rcv_skb()
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 1068 u8 metalen; in nfp_nsp_read_module_eeprom() member 1085 buf->metalen = in nfp_nsp_read_module_eeprom()
|
/Linux-v5.4/net/core/ |
D | filter.c | 3383 unsigned long metalen = xdp_get_metalen(xdp); in BPF_CALL_2() local 3384 void *data_start = xdp_frame_end + metalen; in BPF_CALL_2() 3391 if (metalen) in BPF_CALL_2() 3393 xdp->data_meta, metalen); in BPF_CALL_2() 3436 unsigned long metalen = xdp->data - meta; in BPF_CALL_2() local 3443 if (unlikely((metalen & (sizeof(__u32) - 1)) || in BPF_CALL_2() 3444 (metalen > 32))) in BPF_CALL_2()
|
D | dev.c | 4249 u32 metalen, act = XDP_DROP; in netif_receive_generic_xdp() local 4338 metalen = xdp->data - xdp->data_meta; in netif_receive_generic_xdp() 4339 if (metalen) in netif_receive_generic_xdp() 4340 skb_metadata_set(skb, metalen); in netif_receive_generic_xdp()
|
/Linux-v5.4/fs/ext4/ |
D | mballoc.c | 2389 int metalen = 0; in ext4_mb_add_groupinfo() local 2400 metalen = sizeof(*meta_group_info) << in ext4_mb_add_groupinfo() 2402 meta_group_info = kmalloc(metalen, GFP_NOFS); in ext4_mb_add_groupinfo()
|