Home
last modified time | relevance | path

Searched refs:SKB_DATA_ALIGN (Results 1 – 25 of 91) sorted by relevance

1234

/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dipoib_rx.c25 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 Dvmxnet3_xdp.h19 #define VMXNET3_XDP_RX_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
/openbmc/linux/drivers/net/ethernet/ibm/emac/
H A Dcore.h70 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 Dnetvsc_bpf.c115 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 Dnicvf_queues.h90 #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 Docelot_fdma.h58 #define OCELOT_FDMA_SKBFRAG_OVR (4 + SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
/openbmc/linux/include/net/
H A Dxdp.h144 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 Dena_xdp.h19 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dbgmac.h334 #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 Dbcm4908_enet.c42 #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 Dvirtio_net.c535 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 Dmvneta_bm.c189 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 Daq_ring.h17 #define AQ_XDP_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.h52 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_txrx.h56 #define FUN_RX_TAILROOM SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
/openbmc/linux/drivers/vhost/
H A Dnet.c708 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 Dlantiq_xrx200.c125 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 Diavf_txrx.h140 rx_buf_len = IAVF_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in iavf_skb_pad()
H A Diavf_txrx.c1261 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 Dtest_run.c639 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 Dmsg.c54 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 Di40e_txrx.h156 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 Dice_txrx.h80 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 Dixgbevf_main.c836 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 Den.h79 #define MLX5_SKB_FRAG_SZ(len) (SKB_DATA_ALIGN(len) + \
80 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))

1234