Searched refs:metasize (Results 1 – 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/include/net/ |
D | xdp.h | 98 u32 metasize:8; member 142 xdp->data_meta = frame->data - frame->metasize; in xdp_convert_frame_to_buff() 150 int metasize, headroom; in xdp_update_frame_from_buff() local 154 metasize = xdp->data - xdp->data_meta; in xdp_update_frame_from_buff() 155 metasize = metasize > 0 ? metasize : 0; in xdp_update_frame_from_buff() 156 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff() 168 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
|
/kernel/linux/linux-5.10/net/core/ |
D | xdp.c | 419 unsigned int metasize, totsize; in xdp_convert_zc_to_xdp_frame() local 425 metasize = xdp_data_meta_unsupported(xdp) ? 0 : in xdp_convert_zc_to_xdp_frame() 427 totsize = xdp->data_end - xdp->data + metasize; in xdp_convert_zc_to_xdp_frame() 441 data_to_copy = metasize ? xdp->data_meta : xdp->data; in xdp_convert_zc_to_xdp_frame() 444 xdpf->data = addr + metasize; in xdp_convert_zc_to_xdp_frame() 445 xdpf->len = totsize - metasize; in xdp_convert_zc_to_xdp_frame() 447 xdpf->metasize = metasize; in xdp_convert_zc_to_xdp_frame()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.c | 250 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_construct_skb_zc() local 263 if (metasize) in i40e_construct_skb_zc() 264 skb_metadata_set(skb, metasize); in i40e_construct_skb_zc()
|
D | i40e_txrx.c | 2069 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_build_skb() local 2094 if (metasize) in i40e_build_skb() 2095 skb_metadata_set(skb, metasize); in i40e_build_skb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_xsk.c | 209 unsigned int metasize = bi->xdp->data - bi->xdp->data_meta; in ixgbe_construct_skb_zc() local 222 if (metasize) in ixgbe_construct_skb_zc() 223 skb_metadata_set(skb, metasize); in ixgbe_construct_skb_zc()
|
D | ixgbe_main.c | 2157 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbe_build_skb() local 2182 if (metasize) in ixgbe_build_skb() 2183 skb_metadata_set(skb, metasize); in ixgbe_build_skb()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | virtio_net.c | 382 bool hdr_valid, unsigned int metasize) in page_to_skb() argument 418 copy = ETH_HLEN + metasize; in page_to_skb() 421 if (metasize) { in page_to_skb() 422 __skb_pull(skb, metasize); in page_to_skb() 423 skb_metadata_set(skb, metasize); in page_to_skb() 691 unsigned int metasize = 0; in receive_small() local 750 metasize = xdp.data - xdp.data_meta; in receive_small() 796 if (metasize) in receive_small() 797 skb_metadata_set(skb, metasize); in receive_small() 852 unsigned int metasize = 0; in receive_mergeable() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_xsk.c | 483 unsigned int metasize = rx_buf->xdp->data - rx_buf->xdp->data_meta; in ice_construct_skb_zc() local 496 if (metasize) in ice_construct_skb_zc() 497 skb_metadata_set(skb, metasize); in ice_construct_skb_zc()
|
D | ice_txrx.c | 917 u8 metasize = xdp->data - xdp->data_meta; in ice_build_skb() local 946 if (metasize) in ice_build_skb() 947 skb_metadata_set(skb, metasize); in ice_build_skb()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | cpumap.c | 180 if (xdpf->metasize) in cpu_map_build_skb() 181 skb_metadata_set(skb, xdpf->metasize); in cpu_map_build_skb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 934 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbevf_build_skb() local 959 if (metasize) in ixgbevf_build_skb() 960 skb_metadata_set(skb, metasize); in ixgbevf_build_skb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 8378 unsigned int metasize = xdp->data - xdp->data_meta; in igb_build_skb() local 8393 if (metasize) in igb_build_skb() 8394 skb_metadata_set(skb, metasize); in igb_build_skb()
|