/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | ipoib_rx.c | 25 int skb_size = SKB_DATA_ALIGN(size + HFI1_IPOIB_SKB_PAD); in prepare_frag_skb() 28 skb_size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in prepare_frag_skb() 29 skb_size = SKB_DATA_ALIGN(skb_size); in prepare_frag_skb()
|
/openbmc/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_xdp.h | 19 #define VMXNET3_XDP_RX_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
/openbmc/linux/drivers/net/ethernet/ibm/emac/ |
H A D | core.h | 70 return SKB_DATA_ALIGN(size + NET_IP_ALIGN) + NET_SKB_PAD; in emac_rx_skb_size() 76 return SKB_DATA_ALIGN(emac_rx_size(mtu) + NET_IP_ALIGN); in emac_rx_sync_size()
|
/openbmc/linux/drivers/net/hyperv/ |
H A D | netvsc_bpf.c | 115 return SKB_DATA_ALIGN(len) + in netvsc_xdp_fraglen() 116 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in netvsc_xdp_fraglen()
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.h | 90 #define RCV_FRAG_LEN (SKB_DATA_ALIGN(DMA_BUFFER_LEN + NET_SKB_PAD) + \ 91 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_fdma.h | 58 #define OCELOT_FDMA_SKBFRAG_OVR (4 + SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
/openbmc/linux/include/net/ |
H A D | xdp.h | 144 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))) 209 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in xdp_get_shared_info_from_frame()
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_xdp.h | 19 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bgmac.h | 334 #define BGMAC_RX_ALLOC_SIZE (SKB_DATA_ALIGN(BGMAC_RX_BUF_SIZE + BGMAC_RX_BUF_OFFSET) + \ 335 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
H A D | bcm4908_enet.c | 42 #define ENET_RX_SKB_BUF_ALLOC_SIZE (SKB_DATA_ALIGN(ENET_RX_SKB_BUF_SIZE) + \ 43 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
/openbmc/linux/drivers/net/ |
H A D | virtio_net.c | 535 shinfo_size = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in page_to_skb() 1094 int tailroom = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in xdp_linearize_page() 1153 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_build_skb() 1154 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in receive_small_build_skb() 1194 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_xdp() 1195 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in receive_small_xdp() 1205 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small_xdp() 1206 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in receive_small_xdp() 1465 room = SKB_DATA_ALIGN(headroom + tailroom); in virtnet_build_xdp_buff_mrg() 1549 xdp_room = SKB_DATA_ALIGN(VIRTIO_XDP_HEADROOM + in mergeable_xdp_get_buf() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.c | 189 SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(new_pool->pkt_size)) + in mvneta_bm_pool_use() 190 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in mvneta_bm_pool_use()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ring.h | 17 #define AQ_XDP_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.h | 52 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
/openbmc/linux/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_txrx.h | 56 #define FUN_RX_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
/openbmc/linux/drivers/vhost/ |
H A D | net.c | 708 int buflen = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in vhost_net_build_xdp() 709 int pad = SKB_DATA_ALIGN(VHOST_NET_RX_PAD + headroom + nvq->sock_hlen); in vhost_net_build_xdp() 717 if (SKB_DATA_ALIGN(len + pad) + in vhost_net_build_xdp() 718 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) > PAGE_SIZE) in vhost_net_build_xdp() 721 buflen += SKB_DATA_ALIGN(len + pad); in vhost_net_build_xdp()
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | lantiq_xrx200.c | 125 return SKB_DATA_ALIGN(buf_size + NET_SKB_PAD + NET_IP_ALIGN) + in xrx200_skb_size() 126 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in xrx200_skb_size()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.h | 140 rx_buf_len = IAVF_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in iavf_skb_pad()
|
H A D | iavf_txrx.c | 1261 unsigned int truesize = SKB_DATA_ALIGN(size + iavf_rx_offset(rx_ring)); in iavf_add_rx_frag() 1327 unsigned int truesize = SKB_DATA_ALIGN(size); in iavf_construct_skb() 1391 unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in iavf_build_skb() 1392 SKB_DATA_ALIGN(IAVF_SKB_PAD + size); in iavf_build_skb()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 639 size = SKB_DATA_ALIGN(size); in BTF_ID_FLAGS() 972 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in bpf_prog_test_run_skb() 1149 u32 tailroom = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in bpf_prog_test_run_xdp() 1602 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in bpf_prog_test_run_nf()
|
/openbmc/linux/net/tipc/ |
H A D | msg.c | 54 const int one_page_mtu = PAGE_SIZE - SKB_DATA_ALIGN(BUF_OVERHEAD) - 55 SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.h | 156 rx_buf_len = I40E_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in i40e_skb_pad()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx.h | 80 rx_buf_len = ICE_RXBUF_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in ice_skb_pad()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ixgbevf_main.c | 836 SKB_DATA_ALIGN(IXGBEVF_SKB_PAD + size) : in ixgbevf_add_rx_frag() 837 SKB_DATA_ALIGN(size); in ixgbevf_add_rx_frag() 858 unsigned int truesize = SKB_DATA_ALIGN(xdp->data_end - in ixgbevf_construct_skb() 933 unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in ixgbevf_build_skb() 934 SKB_DATA_ALIGN(xdp->data_end - in ixgbevf_build_skb() 1096 SKB_DATA_ALIGN(IXGBEVF_SKB_PAD + size) + in ixgbevf_rx_frame_truesize() 1097 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) : in ixgbevf_rx_frame_truesize() 1098 SKB_DATA_ALIGN(size); in ixgbevf_rx_frame_truesize()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en.h | 79 #define MLX5_SKB_FRAG_SZ(len) (SKB_DATA_ALIGN(len) + \ 80 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|