Home
last modified time | relevance | path

Searched refs:skb_len (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.12.1/include/net/netfilter/
Dnf_tables_ipv4.h22 u32 len, thoff, skb_len; in __nft_set_pktinfo_ipv4_validate() local
34 skb_len = pkt->skb->len - skb_network_offset(pkt->skb); in __nft_set_pktinfo_ipv4_validate()
36 if (skb_len < len) in __nft_set_pktinfo_ipv4_validate()
Dnf_tables_ipv6.h34 u32 pkt_len, skb_len; in __nft_set_pktinfo_ipv6_validate() local
46 skb_len = pkt->skb->len - skb_network_offset(pkt->skb); in __nft_set_pktinfo_ipv6_validate()
47 if (pkt_len + sizeof(*ip6h) > skb_len) in __nft_set_pktinfo_ipv6_validate()
/linux-6.12.1/include/net/
Dcodel_impl.h115 u32 skb_len; in codel_should_drop() local
122 skb_len = skb_len_func(skb); in codel_should_drop()
125 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop()
126 stats->maxpacket = skb_len; in codel_should_drop()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_check_mtu.c180 __u32 skb_len = ctx->len; in tc_exceed_mtu() local
186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu()
231 __u32 skb_len = ctx->len; in tc_minus_delta() local
236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
Dtest_misc_tcp_hdr_options.c141 if (tcp_hdrlen(th) < skops->skb_len) in check_active_hdr_in()
147 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in()
/linux-6.12.1/net/nfc/hci/
Dhcp.c47 int skb_len, data_link_len; in nfc_hci_hcp_message_tx() local
57 skb_len = ndev->tx_headroom + NFC_HCI_HCP_PACKET_HEADER_LEN + in nfc_hci_hcp_message_tx()
61 skb = alloc_skb(skb_len, GFP_KERNEL); in nfc_hci_hcp_message_tx()
/linux-6.12.1/drivers/staging/rtl8723bs/hal/
Drtl8723bs_recv.c229 u32 pkt_offset, skb_len, alloc_sz; in rtl8723bs_recv_tasklet() local
279 skb_len = pattrib->pkt_len; in rtl8723bs_recv_tasklet()
284 if (skb_len <= 1650) in rtl8723bs_recv_tasklet()
287 alloc_sz = skb_len + 14; in rtl8723bs_recv_tasklet()
289 alloc_sz = skb_len; in rtl8723bs_recv_tasklet()
305 memcpy(pkt_copy->data, (ptr + rx_report_sz + pattrib->shift_sz), skb_len); in rtl8723bs_recv_tasklet()
310 recvframe_put(precvframe, skb_len); in rtl8723bs_recv_tasklet()
/linux-6.12.1/drivers/bluetooth/
Dbtrsi.c75 int skb_len = skb->len; in rsi_hci_send_pkt() local
80 memmove(skb->data, skb_data, skb_len); in rsi_hci_send_pkt()
81 skb_trim(skb, skb_len); in rsi_hci_send_pkt()
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dtx.c146 unsigned int skb_len; in __efx_siena_enqueue_skb() local
149 skb_len = skb->len; in __efx_siena_enqueue_skb()
164 } else if (skb->data_len && skb_len <= EFX_TX_CB_SIZE) { in __efx_siena_enqueue_skb()
181 if (__netdev_tx_sent_queue(tx_queue->core_txq, skb_len, xmit_more)) in __efx_siena_enqueue_skb()
/linux-6.12.1/drivers/net/wwan/t7xx/
Dt7xx_netdev.c134 int skb_len = skb->len; in t7xx_ccmni_start_xmit() local
147 dev->stats.tx_bytes += skb_len; in t7xx_ccmni_start_xmit()
417 int pkt_type, skb_len; in t7xx_ccmni_recv_skb() local
436 skb_len = skb->len; in t7xx_ccmni_recv_skb()
439 net_dev->stats.rx_bytes += skb_len; in t7xx_ccmni_recv_skb()
/linux-6.12.1/drivers/net/ethernet/sfc/
Dtx.c328 unsigned int skb_len; in __efx_enqueue_skb() local
331 skb_len = skb->len; in __efx_enqueue_skb()
362 } else if (skb_len <= efx_piobuf_size && !xmit_more && in __efx_enqueue_skb()
370 } else if (skb->data_len && skb_len <= EFX_TX_CB_SIZE) { in __efx_enqueue_skb()
387 if (__netdev_tx_sent_queue(tx_queue->core_txq, skb_len, xmit_more)) in __efx_enqueue_skb()
/linux-6.12.1/drivers/nfc/pn533/
Dpn533.c1032 unsigned int skb_len = 36 + /* in pn533_alloc_poll_tg_frame() local
1039 skb = pn533_alloc_skb(dev, skb_len); in pn533_alloc_poll_tg_frame()
1345 int rc, skb_len; in pn533_poll_dep() local
1358 skb_len = 3 + dev->gb_len; /* ActPass + BR + Next */ in pn533_poll_dep()
1359 skb_len += PASSIVE_DATA_LEN; in pn533_poll_dep()
1362 skb_len += NFC_NFCID3_MAXSIZE; in pn533_poll_dep()
1367 skb = pn533_alloc_skb(dev, skb_len); in pn533_poll_dep()
1970 int rc, skb_len; in pn533_dep_link_up() local
1986 skb_len = 3 + gb_len; /* ActPass + BR + Next */ in pn533_dep_link_up()
1987 skb_len += PASSIVE_DATA_LEN; in pn533_dep_link_up()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/falcon/
Dtx.c300 unsigned int skb_len; in ef4_enqueue_skb() local
302 skb_len = skb->len; in ef4_enqueue_skb()
305 if (skb_len < tx_queue->tx_min_size || in ef4_enqueue_skb()
306 (skb->data_len && skb_len <= EF4_TX_CB_SIZE)) { in ef4_enqueue_skb()
319 netdev_tx_sent_queue(tx_queue->core_txq, skb_len); in ef4_enqueue_skb()
/linux-6.12.1/drivers/net/wireless/ath/ath10k/
Dhtc.c173 unsigned int skb_len; in ath10k_htc_send() local
185 skb_len = skb->len; in ath10k_htc_send()
186 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send()
219 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send()
648 unsigned int skb_len; in ath10k_htc_send_bundle() local
651 skb_len = bundle_skb->len; in ath10k_htc_send_bundle()
652 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send_bundle()
662 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send_bundle()
682 ret, ep->eid, skb_queue_len(&ep->tx_req_head), cn, skb_len); in ath10k_htc_send_bundle()
/linux-6.12.1/include/trace/events/
Dnet.h77 unsigned int skb_len),
79 TP_ARGS(skb, rc, dev, skb_len),
90 __entry->len = skb_len;
/linux-6.12.1/drivers/net/ipa/
Dipa_modem.c129 u32 skb_len = skb->len; in ipa_start_xmit() local
133 if (!skb_len) in ipa_start_xmit()
188 stats->tx_bytes += skb_len; in ipa_start_xmit()
/linux-6.12.1/net/vmw_vsock/
Dvirtio_transport_common.c255 size_t skb_len; in virtio_transport_alloc_skb() local
257 skb_len = VIRTIO_VSOCK_SKB_HEADROOM; in virtio_transport_alloc_skb()
260 skb_len += payload_len; in virtio_transport_alloc_skb()
262 skb = virtio_vsock_alloc_skb(skb_len, GFP_KERNEL); in virtio_transport_alloc_skb()
381 size_t skb_len; in virtio_transport_send_pkt_info() local
383 skb_len = min(max_skb_len, rest_len); in virtio_transport_send_pkt_info()
385 skb = virtio_transport_alloc_skb(info, skb_len, can_zcopy, in virtio_transport_send_pkt_info()
399 skb_len == rest_len && info->op == VIRTIO_VSOCK_OP_RW) { in virtio_transport_send_pkt_info()
423 if (WARN_ONCE(ret != skb_len, in virtio_transport_send_pkt_info()
425 ret, skb_len)) in virtio_transport_send_pkt_info()
/linux-6.12.1/drivers/nfc/st95hf/
Dcore.c698 int skb_len; in st95hf_response_handler() local
712 skb_len = skb_resp->len; in st95hf_response_handler()
739 skb_trim(skb_resp, (skb_len - 5)); in st95hf_response_handler()
741 skb_trim(skb_resp, (skb_len - 3)); in st95hf_response_handler()
745 skb_trim(skb_resp, (skb_len - 3)); in st95hf_response_handler()
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dtdls.c636 u16 skb_len; in mwifiex_send_tdls_data_frame() local
638 skb_len = MWIFIEX_MIN_DATA_HEADER_LEN + in mwifiex_send_tdls_data_frame()
656 skb_len += sizeof(struct ieee_types_vht_cap) + in mwifiex_send_tdls_data_frame()
660 skb = dev_alloc_skb(skb_len); in mwifiex_send_tdls_data_frame()
822 u16 pkt_len, skb_len; in mwifiex_send_tdls_action_frame() local
824 skb_len = MWIFIEX_MIN_DATA_HEADER_LEN + in mwifiex_send_tdls_action_frame()
839 skb_len += sizeof(struct ieee_types_vht_cap) + in mwifiex_send_tdls_action_frame()
843 skb = dev_alloc_skb(skb_len); in mwifiex_send_tdls_action_frame()
/linux-6.12.1/net/bluetooth/
Daf_bluetooth.c463 int skb_len = skb_headlen(skb); in bt_sock_stream_recvmsg() local
465 if (chunk <= skb_len) { in bt_sock_stream_recvmsg()
470 __skb_pull(skb, skb_len); in bt_sock_stream_recvmsg()
471 chunk -= skb_len; in bt_sock_stream_recvmsg()
/linux-6.12.1/drivers/atm/
Dfore200e.c1476 int skb_len; in fore200e_send() local
1503 skb_len = tx_len = skb->len - 4; in fore200e_send()
1511 skb_len = skb->len; in fore200e_send()
1518 tx_len = skb_len; in fore200e_send()
1521 if ((vcc->qos.aal == ATM_AAL0) && (skb_len % ATM_CELL_PAYLOAD)) { in fore200e_send()
1526 tx_len = ((skb_len / ATM_CELL_PAYLOAD) + 1) * ATM_CELL_PAYLOAD; in fore200e_send()
1541 memcpy(data, skb_data, skb_len); in fore200e_send()
1542 if (skb_len < tx_len) in fore200e_send()
1543 memset(data + skb_len, 0x00, tx_len - skb_len); in fore200e_send()
1617 tpd->tsd[0].length, skb_len); in fore200e_send()
[all …]
/linux-6.12.1/drivers/staging/most/net/
Dnet.c436 unsigned int skb_len; in comp_rx_data() local
494 skb_len = skb->len; in comp_rx_data()
497 dev->stats.rx_bytes += skb_len; in comp_rx_data()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c60 unsigned int skb_len = skb->len; in rtl92de_tx_fill_desc() local
160 set_tx_desc_pkt_size(pdesc, (u16)skb_len); in rtl92de_tx_fill_desc()
/linux-6.12.1/drivers/net/usb/
Daqc111.c1082 u32 skb_len; in aqc111_rx_fixup() local
1087 skb_len = skb->len; in aqc111_rx_fixup()
1088 if (skb_len < sizeof(desc_hdr)) in aqc111_rx_fixup()
1092 skb_trim(skb, skb_len - sizeof(desc_hdr)); in aqc111_rx_fixup()
1099 start_of_descs = skb_len - ((pkt_count + 1) * sizeof(desc_hdr)); in aqc111_rx_fixup()
1108 if (pkt_count * 2 + desc_offset >= skb_len) in aqc111_rx_fixup()
/linux-6.12.1/drivers/net/caif/
Dcaif_virtio.c258 unsigned int skb_len; in cfv_rx_poll() local
294 skb_len = skb->len; in cfv_rx_poll()
303 cfv->ndev->stats.rx_bytes += skb_len; in cfv_rx_poll()

123