/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | xsk.c | 129 unsigned int meta_len, data_len, pkt_len, pkt_off; in nfp_nfd3_xsk_rx() local 167 meta_len = rxd->rxd.meta_len_dd & PCIE_DESC_RX_META_LEN_MASK; in nfp_nfd3_xsk_rx() 169 pkt_len = data_len - meta_len; in nfp_nfd3_xsk_rx() 171 if (unlikely(meta_len > NFP_NET_MAX_PREPEND)) { in nfp_nfd3_xsk_rx() 173 meta_len); in nfp_nfd3_xsk_rx() 184 xrxbuf->xdp->data += meta_len; in nfp_nfd3_xsk_rx() 190 if (meta_len) { in nfp_nfd3_xsk_rx() 193 meta_len, in nfp_nfd3_xsk_rx() 195 pkt_len, meta_len))) { in nfp_nfd3_xsk_rx()
|
D | dp.c | 741 void *data, void *pkt, unsigned int pkt_len, int meta_len) in nfp_nfd3_parse_meta() argument 922 unsigned int meta_len, data_len, meta_off, pkt_len, pkt_off; in nfp_nfd3_rx() local 961 meta_len = rxd->rxd.meta_len_dd & PCIE_DESC_RX_META_LEN_MASK; in nfp_nfd3_rx() 963 pkt_len = data_len - meta_len; in nfp_nfd3_rx() 967 pkt_off += meta_len; in nfp_nfd3_rx() 970 meta_off = pkt_off - meta_len; in nfp_nfd3_rx() 978 if (unlikely(meta_len > NFP_NET_MAX_PREPEND || in nfp_nfd3_rx() 979 (dp->rx_offset && meta_len > dp->rx_offset))) { in nfp_nfd3_rx() 981 meta_len); in nfp_nfd3_rx() 992 } else if (meta_len) { in nfp_nfd3_rx() [all …]
|
D | nfd3.h | 93 void *data, void *pkt, unsigned int pkt_len, int meta_len);
|
/linux-6.6.21/drivers/nvme/host/ |
D | ioctl.c | 167 unsigned bufflen, void __user *meta_buffer, unsigned meta_len, in nvme_map_user_request() argument 201 if (bdev && meta_buffer && meta_len) { in nvme_map_user_request() 202 meta = nvme_add_user_metadata(req, meta_buffer, meta_len, in nvme_map_user_request() 223 void __user *meta_buffer, unsigned meta_len, u32 meta_seed, in nvme_submit_user_cmd() argument 241 meta_len, meta_seed, &meta, NULL, flags); in nvme_submit_user_cmd() 255 meta_len, ret); in nvme_submit_user_cmd() 270 unsigned length, meta_len; in nvme_submit_io() local 297 meta_len = 0; in nvme_submit_io() 300 meta_len = (io.nblocks + 1) * ns->ms; in nvme_submit_io() 305 length += meta_len; in nvme_submit_io() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | type_cast.c | 20 unsigned int meta_len, frag0_len, kskb_len, kskb2_len; variable 53 meta_len = shared_info->meta_len; in md_skb()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 741 void *data, void *pkt, unsigned int pkt_len, int meta_len) in nfp_nfdk_parse_meta() argument 1044 unsigned int meta_len, data_len, meta_off, pkt_len, pkt_off; in nfp_nfdk_rx() local 1083 meta_len = rxd->rxd.meta_len_dd & PCIE_DESC_RX_META_LEN_MASK; in nfp_nfdk_rx() 1085 pkt_len = data_len - meta_len; in nfp_nfdk_rx() 1089 pkt_off += meta_len; in nfp_nfdk_rx() 1092 meta_off = pkt_off - meta_len; in nfp_nfdk_rx() 1100 if (unlikely(meta_len > NFP_NET_MAX_PREPEND || in nfp_nfdk_rx() 1101 (dp->rx_offset && meta_len > dp->rx_offset))) { in nfp_nfdk_rx() 1103 meta_len); in nfp_nfdk_rx() 1111 if (meta_len) { in nfp_nfdk_rx() [all …]
|
/linux-6.6.21/net/psample/ |
D | psample.c | 373 int meta_len; in psample_sample_packet() local 377 meta_len = (in_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet() 392 meta_len += psample_tunnel_meta_len(tun_info); in psample_sample_packet() 396 if (meta_len + nla_total_size(data_len) > PSAMPLE_MAX_PACKET_SIZE) in psample_sample_packet() 397 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet() 400 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
|
/linux-6.6.21/net/xdp/ |
D | xsk.c | 231 u32 from_len, meta_len, rem, num_desc; in __xsk_rcv() local 237 meta_len = xdp->data - copy_from; in __xsk_rcv() 238 rem = len + meta_len; in __xsk_rcv() 248 memcpy(xsk_xdp->data - meta_len, copy_from, rem); in __xsk_rcv() 278 u32 to_len = frame_size + meta_len; in __xsk_rcv() 282 copy_to = xsk_xdp->data - meta_len; in __xsk_rcv() 288 __xsk_rcv_zc(xs, xskb, copied - meta_len, rem ? XDP_PKT_CONTD : 0); in __xsk_rcv() 289 meta_len = 0; in __xsk_rcv()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | type_cast.c | 69 ASSERT_EQ(skel->bss->meta_len, 0, "skb meta_len"); in test_tc()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 98 u32 meta_len, key_len, mask_len, act_len, tot_len; in nfp_flower_xmit_flow() local 102 meta_len = sizeof(struct nfp_fl_rule_metadata); in nfp_flower_xmit_flow() 107 tot_len = meta_len + key_len + mask_len + act_len; in nfp_flower_xmit_flow() 121 memcpy(msg, &nfp_flow->meta, meta_len); in nfp_flower_xmit_flow() 122 memcpy(&msg[meta_len], nfp_flow->unmasked_data, key_len); in nfp_flower_xmit_flow() 123 memcpy(&msg[meta_len + key_len], nfp_flow->mask_data, mask_len); in nfp_flower_xmit_flow() 124 memcpy(&msg[meta_len + key_len + mask_len], in nfp_flower_xmit_flow()
|
/linux-6.6.21/include/linux/ |
D | skbuff.h | 574 __u8 meta_len; member 4221 return skb_shinfo(skb)->meta_len; in skb_metadata_len() 4231 u8 meta_len) in __skb_metadata_differs() argument 4239 switch (meta_len) { in __skb_metadata_differs() 4261 return memcmp(a - meta_len, b - meta_len, meta_len); in __skb_metadata_differs() 4278 static inline void skb_metadata_set(struct sk_buff *skb, u8 meta_len) in skb_metadata_set() argument 4280 skb_shinfo(skb)->meta_len = meta_len; in skb_metadata_set()
|
/linux-6.6.21/net/bpf/ |
D | test_run.c | 135 size_t frm_len, meta_len; in xdp_test_run_init_page() local 141 meta_len = orig_ctx->data - orig_ctx->data_meta; in xdp_test_run_init_page() 142 headroom -= meta_len; in xdp_test_run_init_page() 151 new_ctx->data = new_ctx->data_meta + meta_len; in xdp_test_run_init_page()
|
/linux-6.6.21/net/core/ |
D | skbuff.c | 5871 int mac_len, meta_len; in skb_reorder_vlan_header() local 5885 meta_len = skb_metadata_len(skb); in skb_reorder_vlan_header() 5886 if (meta_len) { in skb_reorder_vlan_header() 5887 meta = skb_metadata_end(skb) - meta_len; in skb_reorder_vlan_header() 5888 memmove(meta + VLAN_HLEN, meta, meta_len); in skb_reorder_vlan_header()
|