Home
last modified time | relevance | path

Searched refs:metasize (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.15/include/net/
Dxdp.h118 u32 metasize:8; member
181 xdp->data_meta = frame->data - frame->metasize; in xdp_convert_frame_to_buff()
189 int metasize, headroom; in xdp_update_frame_from_buff() local
193 metasize = xdp->data - xdp->data_meta; in xdp_update_frame_from_buff()
194 metasize = metasize > 0 ? metasize : 0; in xdp_update_frame_from_buff()
195 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
207 xdp_frame->metasize = metasize; in xdp_update_frame_from_buff()
/Linux-v5.15/net/core/
Dxdp.c475 unsigned int metasize, totsize; in xdp_convert_zc_to_xdp_frame() local
481 metasize = xdp_data_meta_unsupported(xdp) ? 0 : in xdp_convert_zc_to_xdp_frame()
483 totsize = xdp->data_end - xdp->data + metasize; in xdp_convert_zc_to_xdp_frame()
497 data_to_copy = metasize ? xdp->data_meta : xdp->data; in xdp_convert_zc_to_xdp_frame()
500 xdpf->data = addr + metasize; in xdp_convert_zc_to_xdp_frame()
501 xdpf->len = totsize - metasize; in xdp_convert_zc_to_xdp_frame()
503 xdpf->metasize = metasize; in xdp_convert_zc_to_xdp_frame()
552 if (xdpf->metasize) in __xdp_build_skb_from_frame()
553 skb_metadata_set(skb, xdpf->metasize); in __xdp_build_skb_from_frame()
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c206 unsigned int metasize = bi->xdp->data - bi->xdp->data_meta; in ixgbe_construct_skb_zc() local
219 if (metasize) in ixgbe_construct_skb_zc()
220 skb_metadata_set(skb, metasize); in ixgbe_construct_skb_zc()
Dixgbe_main.c2152 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbe_build_skb() local
2177 if (metasize) in ixgbe_build_skb()
2178 skb_metadata_set(skb, metasize); in ixgbe_build_skb()
/Linux-v5.15/drivers/net/
Dvirtio_net.c382 bool hdr_valid, unsigned int metasize, in page_to_skb() argument
444 copy = ETH_HLEN + metasize; in page_to_skb()
491 if (metasize) { in page_to_skb()
492 __skb_pull(skb, metasize); in page_to_skb()
493 skb_metadata_set(skb, metasize); in page_to_skb()
724 unsigned int metasize = 0; in receive_small() local
780 metasize = xdp.data - xdp.data_meta; in receive_small()
829 if (metasize) in receive_small()
830 skb_metadata_set(skb, metasize); in receive_small()
885 unsigned int metasize = 0; in receive_mergeable() local
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c246 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_construct_skb_zc() local
259 if (metasize) in i40e_construct_skb_zc()
260 skb_metadata_set(skb, metasize); in i40e_construct_skb_zc()
Di40e_txrx.c2189 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_build_skb() local
2214 if (metasize) in i40e_build_skb()
2215 skb_metadata_set(skb, metasize); in i40e_build_skb()
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_xsk.c433 unsigned int metasize = rx_buf->xdp->data - rx_buf->xdp->data_meta; in ice_construct_skb_zc() local
446 if (metasize) in ice_construct_skb_zc()
447 skb_metadata_set(skb, metasize); in ice_construct_skb_zc()
Dice_txrx.c894 u8 metasize = xdp->data - xdp->data_meta; in ice_build_skb() local
923 if (metasize) in ice_build_skb()
924 skb_metadata_set(skb, metasize); in ice_build_skb()
/Linux-v5.15/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c929 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbevf_build_skb() local
954 if (metasize) in ixgbevf_build_skb()
955 skb_metadata_set(skb, metasize); in ixgbevf_build_skb()
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc_main.c2437 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb_zc() local
2439 unsigned int totalsize = metasize + datasize; in igc_construct_skb_zc()
2450 if (metasize) in igc_construct_skb_zc()
2451 skb_metadata_set(skb, metasize); in igc_construct_skb_zc()
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c4733 unsigned int metasize = xdp->data - xdp->data_meta; in stmmac_construct_skb_zc() local
4745 if (metasize) in stmmac_construct_skb_zc()
4746 skb_metadata_set(skb, metasize); in stmmac_construct_skb_zc()
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb_main.c8356 unsigned int metasize = xdp->data - xdp->data_meta; in igb_build_skb() local
8371 if (metasize) in igb_build_skb()
8372 skb_metadata_set(skb, metasize); in igb_build_skb()