| /Linux-v5.15/drivers/infiniband/hw/hfi1/ |
| D | ipoib_rx.c | 28 int skb_size = SKB_DATA_ALIGN(size + HFI1_IPOIB_SKB_PAD); in prepare_frag_skb() 31 skb_size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in prepare_frag_skb() 32 skb_size = SKB_DATA_ALIGN(skb_size); in prepare_frag_skb()
|
| /Linux-v5.15/drivers/net/hyperv/ |
| D | netvsc_bpf.c | 87 return SKB_DATA_ALIGN(len) + in netvsc_xdp_fraglen() 88 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in netvsc_xdp_fraglen()
|
| /Linux-v5.15/include/net/ |
| D | xdp.h | 106 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))) 146 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in xdp_get_shared_info_from_frame()
|
| /Linux-v5.15/drivers/net/ethernet/ibm/emac/ |
| D | core.h | 71 return SKB_DATA_ALIGN(size + NET_IP_ALIGN) + NET_SKB_PAD; in emac_rx_skb_size() 77 return SKB_DATA_ALIGN(emac_rx_size(mtu) + NET_IP_ALIGN); in emac_rx_sync_size()
|
| /Linux-v5.15/drivers/net/ethernet/cavium/thunder/ |
| 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)))
|
| /Linux-v5.15/drivers/net/ethernet/intel/ice/ |
| D | ice_txrx.c | 510 SKB_DATA_ALIGN(rx_ring->rx_offset + size) + in ice_rx_frame_truesize() 511 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) : in ice_rx_frame_truesize() 512 SKB_DATA_ALIGN(size); in ice_rx_frame_truesize() 801 unsigned int truesize = SKB_DATA_ALIGN(size + rx_ring->rx_offset); in ice_add_rx_frag() 898 unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in ice_build_skb() 899 SKB_DATA_ALIGN(xdp->data_end - in ice_build_skb() 973 unsigned int truesize = SKB_DATA_ALIGN(size); in ice_construct_skb()
|
| D | ice_txrx.h | 79 rx_buf_len = ICE_RXBUF_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in ice_skb_pad()
|
| /Linux-v5.15/drivers/net/ethernet/broadcom/ |
| 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)))
|
| /Linux-v5.15/net/core/ |
| D | skbuff.c | 148 fragsz = SKB_DATA_ALIGN(fragsz); in __napi_alloc_frag_align() 159 fragsz = SKB_DATA_ALIGN(fragsz); in __netdev_alloc_frag_align() 198 size -= SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in __build_skb_around() 425 size = SKB_DATA_ALIGN(size); in __alloc_skb() 426 size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in __alloc_skb() 500 len += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in __netdev_alloc_skb() 501 len = SKB_DATA_ALIGN(len); in __netdev_alloc_skb() 576 len += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in __napi_alloc_skb() 577 len = SKB_DATA_ALIGN(len); in __napi_alloc_skb() 1697 size = SKB_DATA_ALIGN(size); in pskb_expand_head() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpaa2-switch.h | 52 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
| D | dpaa2-eth.h | 95 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
|
| /Linux-v5.15/drivers/net/ethernet/marvell/ |
| 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()
|
| /Linux-v5.15/drivers/net/ |
| D | virtio_net.c | 416 shinfo_size = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in page_to_skb() 671 int tailroom = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in xdp_linearize_page() 718 unsigned int buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small() 719 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in receive_small() 755 buflen = SKB_DATA_ALIGN(GOOD_PACKET_LEN + headroom) + in receive_small() 756 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in receive_small() 1186 len = SKB_DATA_ALIGN(len) + in add_recvbuf_small() 1187 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in add_recvbuf_small() 1273 unsigned int room = SKB_DATA_ALIGN(headroom + tailroom); in add_recvbuf_mergeable() 2997 SKB_DATA_ALIGN(headroom + tailroom))); in mergeable_rx_buffer_size_show()
|
| D | veth.c | 736 size = SKB_DATA_ALIGN(VETH_XDP_HEADROOM + pktlen) + in veth_xdp_rcv_skb() 737 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in veth_xdp_rcv_skb() 768 frame_sz += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in veth_xdp_rcv_skb() 1469 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in veth_xdp_set()
|
| /Linux-v5.15/drivers/vhost/ |
| D | net.c | 705 int buflen = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in vhost_net_build_xdp() 706 int pad = SKB_DATA_ALIGN(VHOST_NET_RX_PAD + headroom + nvq->sock_hlen); in vhost_net_build_xdp() 714 if (SKB_DATA_ALIGN(len + pad) + in vhost_net_build_xdp() 715 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) > PAGE_SIZE) in vhost_net_build_xdp() 718 buflen += SKB_DATA_ALIGN(len + pad); in vhost_net_build_xdp()
|
| /Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
| D | i40e_txrx.c | 1644 SKB_DATA_ALIGN(size + rx_ring->rx_offset) + in i40e_rx_frame_truesize() 1645 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) : in i40e_rx_frame_truesize() 1646 SKB_DATA_ALIGN(size); in i40e_rx_frame_truesize() 2045 unsigned int truesize = SKB_DATA_ALIGN(size + rx_ring->rx_offset); in i40e_add_rx_frag() 2114 unsigned int truesize = SKB_DATA_ALIGN(size); in i40e_construct_skb() 2193 unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in i40e_build_skb() 2194 SKB_DATA_ALIGN(xdp->data_end - in i40e_build_skb()
|
| D | i40e_txrx.h | 154 rx_buf_len = I40E_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in i40e_skb_pad()
|
| /Linux-v5.15/drivers/net/ethernet/amazon/ena/ |
| D | ena_netdev.h | 117 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
| /Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
| D | iavf_txrx.h | 141 rx_buf_len = IAVF_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in iavf_skb_pad()
|
| D | iavf_txrx.c | 1223 unsigned int truesize = SKB_DATA_ALIGN(size + iavf_rx_offset(rx_ring)); in iavf_add_rx_frag() 1290 unsigned int truesize = SKB_DATA_ALIGN(size); in iavf_construct_skb() 1354 unsigned int truesize = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in iavf_build_skb() 1355 SKB_DATA_ALIGN(IAVF_SKB_PAD + size); in iavf_build_skb()
|
| /Linux-v5.15/net/tipc/ |
| 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));
|
| /Linux-v5.15/drivers/net/ethernet/intel/ixgbevf/ |
| 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()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en.h | 78 #define MLX5_SKB_FRAG_SZ(len) (SKB_DATA_ALIGN(len) + \ 79 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
| /Linux-v5.15/net/bpf/ |
| D | test_run.c | 581 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in bpf_prog_test_run_skb() 756 u32 tailroom = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in bpf_prog_test_run_xdp()
|
| /Linux-v5.15/drivers/net/ethernet/sfc/ |
| D | tx.c | 249 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))); in efx_enqueue_skb_pio()
|