Searched refs:metalen (Results 1 – 5 of 5) sorted by relevance
/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()
|
/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 …]
|
/net/sched/ |
D | act_ife.c | 696 u16 metalen; in tcf_ife_decode() local 704 tlv_data = ife_decode(skb, &metalen); in tcf_ife_decode() 710 ifehdr_end = tlv_data + metalen; in tcf_ife_decode() 773 u16 metalen = ife_get_sz(skb, ife); in tcf_ife_encode() local 774 int hdrm = metalen + skb->dev->hard_header_len + IFE_METAHDRLEN; in tcf_ife_encode() 789 if (!metalen) { /* no metadata to send */ in tcf_ife_encode() 806 ife_meta = ife_encode(skb, metalen); in tcf_ife_encode()
|
/net/core/ |
D | filter.c | 3385 unsigned long metalen = xdp_get_metalen(xdp); in BPF_CALL_2() local 3386 void *data_start = xdp_frame_end + metalen; in BPF_CALL_2() 3393 if (metalen) in BPF_CALL_2() 3395 xdp->data_meta, metalen); in BPF_CALL_2() 3438 unsigned long metalen = xdp->data - meta; in BPF_CALL_2() local 3445 if (unlikely((metalen & (sizeof(__u32) - 1)) || in BPF_CALL_2() 3446 (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()
|