| /linux/net/ife/ |
| H A 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() 88 *metalen = ifehdrln - IFE_METAHDRLEN; in ife_decode()
|
| /linux/include/net/ |
| H A 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
|
| H A D | xdp.h | 548 static inline bool xdp_metalen_invalid(unsigned long metalen) in xdp_metalen_invalid() argument 555 return !IS_ALIGNED(metalen, sizeof(u32)) || metalen > meta_max; in xdp_metalen_invalid()
|
| /linux/net/core/ |
| H A D | xdp.c | 639 int metalen; in xdp_build_skb_from_buff() local 653 metalen = xdp->data - xdp->data_meta; in xdp_build_skb_from_buff() 654 if (metalen > 0) in xdp_build_skb_from_buff() 655 skb_metadata_set(skb, metalen); in xdp_build_skb_from_buff() 746 int metalen; in xdp_build_skb_from_zc() local 769 metalen = xdp->data - xdp->data_meta; in xdp_build_skb_from_zc() 770 if (metalen > 0) { in xdp_build_skb_from_zc() 771 skb_metadata_set(skb, metalen); in xdp_build_skb_from_zc() 772 __skb_pull(skb, metalen); in xdp_build_skb_from_zc()
|
| H A D | filter.c | 3987 unsigned long metalen = xdp_get_metalen(xdp); in BPF_CALL_2() local 3988 void *data_start = xdp_frame_end + metalen; in BPF_CALL_2() 3995 if (metalen) in BPF_CALL_2() 3997 xdp->data_meta, metalen); in BPF_CALL_2() 4291 unsigned long metalen = xdp->data - meta; in BPF_CALL_2() local 4298 if (unlikely(xdp_metalen_invalid(metalen))) in BPF_CALL_2()
|
| H A D | dev.c | 5429 u32 metalen, act; in bpf_prog_run_generic_xdp() local 5513 metalen = xdp->data - xdp->data_meta; in bpf_prog_run_generic_xdp() 5514 if (metalen) in bpf_prog_run_generic_xdp() 5515 skb_metadata_set(skb, metalen); in bpf_prog_run_generic_xdp()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| H A D | rx.c | 231 u32 metalen = xdp->data - xdp->data_meta; in mlx5e_xsk_construct_skb() local 242 if (metalen) { in mlx5e_xsk_construct_skb() 243 skb_metadata_set(skb, metalen); in mlx5e_xsk_construct_skb() 244 __skb_pull(skb, metalen); in mlx5e_xsk_construct_skb()
|
| /linux/net/sched/ |
| H A D | act_ife.c | 718 u16 metalen; in tcf_ife_decode() local 728 tlv_data = ife_decode(skb, &metalen); in tcf_ife_decode() 734 ifehdr_end = tlv_data + metalen; in tcf_ife_decode() 797 u16 metalen = ife_get_sz(skb, p); in tcf_ife_encode() local 798 int hdrm = metalen + skb->dev->hard_header_len + IFE_METAHDRLEN; in tcf_ife_encode() 813 if (!metalen) { /* no metadata to send */ in tcf_ife_encode() 831 ife_meta = ife_encode(skb, metalen); in tcf_ife_encode()
|
| /linux/drivers/misc/ |
| H A D | fastrpc.c | 929 static u64 fastrpc_get_payload_size(struct fastrpc_invoke_ctx *ctx, int metalen) in fastrpc_get_payload_size() argument 934 size = ALIGN(metalen, FASTRPC_ALIGN); in fastrpc_get_payload_size() 996 int metalen; in fastrpc_get_args() local 999 metalen = fastrpc_get_meta_size(ctx); in fastrpc_get_args() 1000 pkt_size = fastrpc_get_payload_size(ctx, metalen); in fastrpc_get_args() 1019 args = (uintptr_t)ctx->buf->virt + metalen; in fastrpc_get_args() 1020 rlen = pkt_size - metalen; in fastrpc_get_args()
|
| /linux/drivers/net/ |
| H A D | veth.c | 799 u32 act, metalen; in veth_xdp_rcv_skb() local 883 metalen = xdp->data - xdp->data_meta; in veth_xdp_rcv_skb() 884 if (metalen) in veth_xdp_rcv_skb() 885 skb_metadata_set(skb, metalen); in veth_xdp_rcv_skb()
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp.c | 1069 u8 metalen; in nfp_nsp_read_module_eeprom() member 1086 buf->metalen = in nfp_nsp_read_module_eeprom()
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 3431 int metalen = 0; in ext4_mb_add_groupinfo() local 3443 metalen = sizeof(*meta_group_info) << in ext4_mb_add_groupinfo() 3445 meta_group_info = kmalloc(metalen, GFP_NOFS); in ext4_mb_add_groupinfo()
|