Home
last modified time | relevance | path

Searched refs:NET_IP_ALIGN (Results 1 – 25 of 114) sorted by relevance

12345

/Linux-v5.4/net/dsa/
Dtag_trailer.c30 nskb = alloc_skb(NET_IP_ALIGN + skb->len + padlen + 4, GFP_ATOMIC); in trailer_xmit()
33 skb_reserve(nskb, NET_IP_ALIGN); in trailer_xmit()
Dtag_ksz.c32 nskb = alloc_skb(NET_IP_ALIGN + skb->len + in ksz_common_xmit()
36 skb_reserve(nskb, NET_IP_ALIGN); in ksz_common_xmit()
/Linux-v5.4/net/bpf/
Dtest_run.c255 data = bpf_test_init(kattr, size, NET_SKB_PAD + NET_IP_ALIGN, in bpf_prog_test_run_skb()
298 skb_reserve(skb, NET_SKB_PAD + NET_IP_ALIGN); in bpf_prog_test_run_skb()
356 data = bpf_test_init(kattr, size, XDP_PACKET_HEADROOM + NET_IP_ALIGN, 0); in bpf_prog_test_run_xdp()
361 xdp.data = data + XDP_PACKET_HEADROOM + NET_IP_ALIGN; in bpf_prog_test_run_xdp()
371 if (xdp.data != data + XDP_PACKET_HEADROOM + NET_IP_ALIGN || in bpf_prog_test_run_xdp()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c60 skb = netdev_alloc_skb(priv->dev, MLX4_LOOPBACK_TEST_PAYLOAD + ETH_HLEN + NET_IP_ALIGN); in mlx4_en_test_loopback_xmit()
64 skb_reserve(skb, NET_IP_ALIGN); in mlx4_en_test_loopback_xmit()
Dmlx4_en.h157 #define SMALL_PACKET_SIZE (256 - NET_IP_ALIGN)
158 #define HEADER_COPY_SIZE (128 - NET_IP_ALIGN)
161 #define MLX4_SELFTEST_LB_MIN_MTU (MLX4_LOOPBACK_TEST_PAYLOAD + NET_IP_ALIGN + \
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h161 rx_buf_len = I40E_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in i40e_skb_pad()
166 rx_buf_len -= NET_IP_ALIGN; in i40e_skb_pad()
174 #define I40E_SKB_PAD (NET_SKB_PAD + NET_IP_ALIGN)
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_txrx.h141 rx_buf_len = IAVF_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in iavf_skb_pad()
146 rx_buf_len -= NET_IP_ALIGN; in iavf_skb_pad()
154 #define IAVF_SKB_PAD (NET_SKB_PAD + NET_IP_ALIGN)
/Linux-v5.4/drivers/net/ethernet/aeroflex/
Dgreth.c179 MAX_FRAME_SIZE+NET_IP_ALIGN, in greth_clean_rings()
246 skb = netdev_alloc_skb(greth->netdev, MAX_FRAME_SIZE+NET_IP_ALIGN); in greth_init_rings()
252 skb_reserve(skb, NET_IP_ALIGN); in greth_init_rings()
255 MAX_FRAME_SIZE+NET_IP_ALIGN, in greth_init_rings()
785 skb = netdev_alloc_skb(dev, pkt_len + NET_IP_ALIGN); in greth_rx()
795 skb_reserve(skb, NET_IP_ALIGN); in greth_rx()
895 if (!bad && (newskb=netdev_alloc_skb(dev, MAX_FRAME_SIZE + NET_IP_ALIGN))) { in greth_rx_gbit()
896 skb_reserve(newskb, NET_IP_ALIGN); in greth_rx_gbit()
900 MAX_FRAME_SIZE + NET_IP_ALIGN, in greth_rx_gbit()
909 MAX_FRAME_SIZE + NET_IP_ALIGN, in greth_rx_gbit()
/Linux-v5.4/drivers/net/ethernet/ibm/emac/
Dcore.h71 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()
Dcore.c1081 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, in emac_resize_rx_ring()
1083 + NET_IP_ALIGN; in emac_resize_rx_ring()
1184 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, in __emac_prepare_rx_skb()
1185 dev->rx_sync_size, DMA_FROM_DEVICE) + NET_IP_ALIGN; in __emac_prepare_rx_skb()
1679 dma_map_single(&dev->ofdev->dev, skb->data - NET_IP_ALIGN, in emac_recycle_rx_skb()
1680 SKB_DATA_ALIGN(len + NET_IP_ALIGN), in emac_recycle_rx_skb()
1733 if (unlikely(tot_len + NET_IP_ALIGN > dev->rx_skb_size)) { in emac_rx_sg_append()
1795 memcpy(copy_skb->data - NET_IP_ALIGN, in emac_poll_rx()
1796 skb->data - NET_IP_ALIGN, in emac_poll_rx()
1797 len + NET_IP_ALIGN); in emac_poll_rx()
/Linux-v5.4/drivers/net/ethernet/xscale/
Dixp4xx_eth.c58 #define RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
734 ALIGN(NET_IP_ALIGN + desc->pkt_len, 4)); in eth_poll()
750 dma_unmap_single(&dev->dev, desc->data - NET_IP_ALIGN, in eth_poll()
753 dma_sync_single_for_cpu(&dev->dev, desc->data - NET_IP_ALIGN, in eth_poll()
756 ALIGN(NET_IP_ALIGN + desc->pkt_len, 4) / 4); in eth_poll()
758 skb_reserve(skb, NET_IP_ALIGN); in eth_poll()
772 desc->data = phys + NET_IP_ALIGN; in eth_poll()
1136 desc->data += NET_IP_ALIGN; in init_queues()
1153 desc->data - NET_IP_ALIGN, in destroy_queues()
/Linux-v5.4/drivers/net/ethernet/microchip/
Dlan743x_main.h806 #if ((NET_IP_ALIGN != 0) && (NET_IP_ALIGN != 2))
807 #error NET_IP_ALIGN must be 0 or 2
810 #define RX_HEAD_PADDING NET_IP_ALIGN
/Linux-v5.4/drivers/net/wireless/ath/carl9170/
Drx.c470 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
473 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
477 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
479 reserved = 32 + (reserved & NET_IP_ALIGN); in carl9170_rx_copy_data()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/
Dusb.c556 #if NET_IP_ALIGN != 0 in _rtl_rx_get_padding()
561 if (NET_IP_ALIGN == 0 || len < sizeof(*hdr)) in _rtl_rx_get_padding()
564 #if NET_IP_ALIGN != 0 in _rtl_rx_get_padding()
571 padding ^= NET_IP_ALIGN; in _rtl_rx_get_padding()
578 padding ^= NET_IP_ALIGN; in _rtl_rx_get_padding()
582 padding ^= NET_IP_ALIGN; in _rtl_rx_get_padding()
/Linux-v5.4/drivers/net/ethernet/tehuti/
Dtehuti.h100 #ifndef NET_IP_ALIGN
101 # define NET_IP_ALIGN 2 macro
/Linux-v5.4/net/batman-adv/
Dbat_v_elp.c355 size = ETH_HLEN + NET_IP_ALIGN + BATADV_ELP_HLEN + tvlv_padding; in batadv_v_elp_iface_enable()
360 skb_reserve(hard_iface->bat_v.elp_skb, ETH_HLEN + NET_IP_ALIGN); in batadv_v_elp_iface_enable()
/Linux-v5.4/drivers/staging/gdm724x/
Dgdm_lte.c157 skb_reserve(skb_out, NET_IP_ALIGN); in gdm_lte_emulate_arp()
318 skb_reserve(skb_out, NET_IP_ALIGN); in gdm_lte_emulate_ndp()
657 skb = dev_alloc_skb(len + mac_header_len + NET_IP_ALIGN); in gdm_lte_netif_rx()
660 skb_reserve(skb, NET_IP_ALIGN); in gdm_lte_netif_rx()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h81 #define IXGBE_MAX_2K_FRAME_BUILD_SKB (IXGBE_RXBUFFER_1536 - NET_IP_ALIGN)
107 rx_buf_len = IXGBE_RXBUFFER_3K + SKB_DATA_ALIGN(NET_IP_ALIGN); in ixgbe_skb_pad()
112 rx_buf_len -= NET_IP_ALIGN; in ixgbe_skb_pad()
119 #define IXGBE_SKB_PAD (NET_SKB_PAD + NET_IP_ALIGN)
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c15 u16 headroom = NET_IP_ALIGN; in mlx5e_get_linear_rq_headroom()
/Linux-v5.4/drivers/net/ethernet/smsc/
Dsmsc9420.h36 #define PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4)
/Linux-v5.4/arch/arm64/include/asm/
Dprocessor.h20 #define NET_IP_ALIGN 0 macro
/Linux-v5.4/drivers/net/ethernet/
Dlantiq_xrx200.c108 desc->ctl = LTQ_DMA_OWN | LTQ_DMA_RX_OFFSET(NET_IP_ALIGN) | in xrx200_flush_dma()
178 LTQ_DMA_OWN | LTQ_DMA_RX_OFFSET(NET_IP_ALIGN) | in xrx200_alloc_skb()
/Linux-v5.4/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.h36 #define SKB_BUFFER_SIZE (XGENE_ENET_STD_MTU - NET_IP_ALIGN)
/Linux-v5.4/drivers/net/ethernet/amazon/ena/
Dena_netdev.h86 #define ENA_DEFAULT_RX_COPYBREAK (256 - NET_IP_ALIGN)
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dnet_driver.h88 #if NET_IP_ALIGN == 0
252 #define EF4_TX_CB_SIZE (1 << EF4_TX_CB_ORDER) - NET_IP_ALIGN

12345