Home
last modified time | relevance | path

Searched refs:skb_size (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dipoib_rx.c25 int skb_size = SKB_DATA_ALIGN(size + HFI1_IPOIB_SKB_PAD); in prepare_frag_skb() local
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()
30 frag = napi_alloc_frag(skb_size); in prepare_frag_skb()
35 skb = build_skb(frag, skb_size); in prepare_frag_skb()
50 int skb_size = size + HFI1_IPOIB_ENCAP_LEN; in hfi1_ipoib_prepare_skb() local
58 skb = napi_alloc_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
60 skb = prepare_frag_skb(napi, skb_size); in hfi1_ipoib_prepare_skb()
/linux-6.1.9/drivers/net/ethernet/marvell/
Dpxa168_eth.c222 int skb_size; member
313 skb = netdev_alloc_skb(dev, pep->skb_size); in rxq_refill()
875 int skb_size; in pxa168_eth_recalc_skb_size() local
883 skb_size = pep->dev->mtu + 36; in pxa168_eth_recalc_skb_size()
890 pep->skb_size = (skb_size + 7) & ~7; in pxa168_eth_recalc_skb_size()
898 pep->skb_size += SKB_DMA_REALIGN; in pxa168_eth_recalc_skb_size()
904 int skb_size; in set_port_config_ext() local
907 if (pep->skb_size <= 1518) in set_port_config_ext()
908 skb_size = PCXR_MFL_1518; in set_port_config_ext()
909 else if (pep->skb_size <= 1536) in set_port_config_ext()
[all …]
Dmv643xx_eth.c388 int skb_size; member
609 skb = netdev_alloc_skb(mp->dev, mp->skb_size); in rxq_refill()
2395 int skb_size; in mv643xx_eth_recalc_skb_size() local
2403 skb_size = mp->dev->mtu + 36; in mv643xx_eth_recalc_skb_size()
2410 mp->skb_size = (skb_size + 7) & ~7; in mv643xx_eth_recalc_skb_size()
2418 mp->skb_size += SKB_DMA_REALIGN; in mv643xx_eth_recalc_skb_size()
/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c220 rds_ring->skb_size = in netxen_alloc_sw_resources()
229 rds_ring->skb_size = in netxen_alloc_sw_resources()
246 rds_ring->skb_size = in netxen_alloc_sw_resources()
253 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; in netxen_alloc_sw_resources()
1460 buffer->skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); in netxen_alloc_rx_skb()
1544 if (length > rds_ring->skb_size) in netxen_process_rcv()
1545 skb_put(skb, rds_ring->skb_size); in netxen_process_rcv()
Dnetxen_nic.h613 u32 skb_size; member
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c822 skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); in qlcnic_alloc_rx_skb()
1230 if (length > rds_ring->skb_size) in qlcnic_process_rcv()
1231 skb_put(skb, rds_ring->skb_size); in qlcnic_process_rcv()
1517 if (length > rds_ring->skb_size) in qlcnic_process_rcv_diag()
1518 skb_put(skb, rds_ring->skb_size); in qlcnic_process_rcv_diag()
1745 if (length > rds_ring->skb_size) in qlcnic_83xx_process_rcv()
1746 skb_put(skb, rds_ring->skb_size); in qlcnic_83xx_process_rcv()
2191 if (length > rds_ring->skb_size) in qlcnic_83xx_process_rcv_diag()
2192 skb_put(skb, rds_ring->skb_size); in qlcnic_83xx_process_rcv_diag()
Dqlcnic_init.c205 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; in qlcnic_alloc_sw_resources()
217 rds_ring->skb_size = in qlcnic_alloc_sw_resources()
Dqlcnic.h580 u32 skb_size; member
/linux-6.1.9/net/batman-adv/
Dbat_iv_ogm.c548 unsigned int skb_size; in batadv_iv_ogm_aggregate_new() local
553 skb_size = BATADV_MAX_AGGREGATION_BYTES; in batadv_iv_ogm_aggregate_new()
555 skb_size = packet_len; in batadv_iv_ogm_aggregate_new()
557 skb_size += ETH_HLEN; in batadv_iv_ogm_aggregate_new()
559 skb = netdev_alloc_skb_ip_align(NULL, skb_size); in batadv_iv_ogm_aggregate_new()
/linux-6.1.9/drivers/net/ethernet/broadcom/
Db44.c822 int skb_size; in b44_rx() local
823 skb_size = b44_alloc_rx_skb(bp, cons, bp->rx_prod); in b44_rx()
824 if (skb_size < 0) in b44_rx()
827 skb_size, DMA_FROM_DEVICE); in b44_rx()
Dtg3.c6640 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() local
6648 tg3_frag_free(skb_size <= PAGE_SIZE, ri->data); in tg3_rx_data_free()
6672 int skb_size, data_size, dest_idx; in tg3_alloc_rx_data() local
6699 skb_size = SKB_DATA_ALIGN(data_size + TG3_RX_OFFSET(tp)) + in tg3_alloc_rx_data()
6701 if (skb_size <= PAGE_SIZE) { in tg3_alloc_rx_data()
6702 data = napi_alloc_frag(skb_size); in tg3_alloc_rx_data()
6703 *frag_size = skb_size; in tg3_alloc_rx_data()
6705 data = kmalloc(skb_size, GFP_ATOMIC); in tg3_alloc_rx_data()
6714 tg3_frag_free(skb_size <= PAGE_SIZE, data); in tg3_alloc_rx_data()
6872 int skb_size; in tg3_rx() local
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dethtool.c1219 unsigned int skb_size = 1024; in e1000_setup_desc_rings() local
1221 skb = alloc_skb(skb_size, GFP_KERNEL); in e1000_setup_desc_rings()
1226 skb_put(skb, skb_size); in e1000_setup_desc_rings()
/linux-6.1.9/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_core.c5857 int skb_size; in rtl8xxxu_submit_rx_urb() local
5863 skb_size = fops->rx_agg_buf_size; in rtl8xxxu_submit_rx_urb()
5864 skb_size += (rx_desc_sz + sizeof(struct rtl8723au_phy_stats)); in rtl8xxxu_submit_rx_urb()
5866 skb_size = IEEE80211_MAX_FRAME_LEN; in rtl8xxxu_submit_rx_urb()
5869 skb = __netdev_alloc_skb(NULL, skb_size, GFP_KERNEL); in rtl8xxxu_submit_rx_urb()
5875 skb_size, rtl8xxxu_rx_complete, skb); in rtl8xxxu_submit_rx_urb()
/linux-6.1.9/net/core/
Dfilter.c4457 u64 skb_size = (flags & BPF_F_CTXLEN_MASK) >> 32; in BPF_CALL_5() local
4461 if (unlikely(!skb || skb_size > skb->len)) in BPF_CALL_5()
4464 return bpf_event_output(map, flags, meta, meta_size, skb, skb_size, in BPF_CALL_5()