Searched refs:metasize (Results 1 – 13 of 13) sorted by relevance
/linux/include/net/ |
A D | xdp.h | 118 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/net/core/ |
A D | xdp.c | 473 unsigned int metasize, totsize; in xdp_convert_zc_to_xdp_frame() local 479 metasize = xdp_data_meta_unsupported(xdp) ? 0 : in xdp_convert_zc_to_xdp_frame() 481 totsize = xdp->data_end - xdp->data + metasize; in xdp_convert_zc_to_xdp_frame() 495 data_to_copy = metasize ? xdp->data_meta : xdp->data; in xdp_convert_zc_to_xdp_frame() 498 xdpf->data = addr + metasize; in xdp_convert_zc_to_xdp_frame() 499 xdpf->len = totsize - metasize; in xdp_convert_zc_to_xdp_frame() 501 xdpf->metasize = metasize; in xdp_convert_zc_to_xdp_frame() 550 if (xdpf->metasize) in __xdp_build_skb_from_frame() 551 skb_metadata_set(skb, xdpf->metasize); in __xdp_build_skb_from_frame()
|
/linux/drivers/net/ |
A D | virtio_net.c | 447 copy = ETH_HLEN + metasize; in page_to_skb() 494 if (metasize) { in page_to_skb() 495 __skb_pull(skb, metasize); in page_to_skb() 496 skb_metadata_set(skb, metasize); in page_to_skb() 727 unsigned int metasize = 0; in receive_small() local 837 if (metasize) in receive_small() 838 skb_metadata_set(skb, metasize); in receive_small() 892 unsigned int metasize = 0; in receive_mergeable() local 975 vi->hdr_len - metasize; in receive_mergeable() 987 metasize, in receive_mergeable() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_xsk.c | 212 unsigned int metasize = bi->xdp->data - bi->xdp->data_meta; in ixgbe_construct_skb_zc() local 225 if (metasize) in ixgbe_construct_skb_zc() 226 skb_metadata_set(skb, metasize); in ixgbe_construct_skb_zc()
|
A D | ixgbe_main.c | 2155 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbe_build_skb() local 2180 if (metasize) in ixgbe_build_skb() 2181 skb_metadata_set(skb, metasize); in ixgbe_build_skb()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_xsk.c | 244 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_construct_skb_zc() local 257 if (metasize) in i40e_construct_skb_zc() 258 skb_metadata_set(skb, metasize); in i40e_construct_skb_zc()
|
A D | i40e_txrx.c | 2189 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/drivers/net/ethernet/intel/ice/ |
A D | ice_xsk.c | 432 unsigned int metasize = xdp->data - xdp->data_meta; in ice_construct_skb_zc() local 443 if (metasize) in ice_construct_skb_zc() 444 skb_metadata_set(skb, metasize); in ice_construct_skb_zc()
|
A D | ice_txrx.c | 926 u8 metasize = xdp->data - xdp->data_meta; in ice_build_skb() local 955 if (metasize) in ice_build_skb() 956 skb_metadata_set(skb, metasize); in ice_build_skb()
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | ixgbevf_main.c | 929 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/drivers/net/ethernet/intel/igc/ |
A D | igc_main.c | 2438 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb_zc() local 2440 unsigned int totalsize = metasize + datasize; in igc_construct_skb_zc() 2451 if (metasize) in igc_construct_skb_zc() 2452 skb_metadata_set(skb, metasize); in igc_construct_skb_zc()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_main.c | 4781 unsigned int metasize = xdp->data - xdp->data_meta; in stmmac_construct_skb_zc() local 4793 if (metasize) in stmmac_construct_skb_zc() 4794 skb_metadata_set(skb, metasize); in stmmac_construct_skb_zc()
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | igb_main.c | 8363 unsigned int metasize = xdp->data - xdp->data_meta; in igb_build_skb() local 8378 if (metasize) in igb_build_skb() 8379 skb_metadata_set(skb, metasize); in igb_build_skb()
|
Completed in 90 milliseconds