| /linux/include/net/netfilter/ |
| H A D | nf_tables_ipv4.h | 22 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()
|
| H A D | nf_tables_ipv6.h | 34 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/include/net/ |
| H A D | codel_impl.h | 115 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/tools/testing/selftests/bpf/progs/ |
| H A D | test_check_mtu.c | 181 __u32 skb_len = ctx->len; in tc_exceed_mtu() 187 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu() 232 __u32 skb_len = ctx->len; in tc_minus_delta() 237 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta() 180 __u32 skb_len = ctx->len; tc_exceed_mtu() local 231 __u32 skb_len = ctx->len; tc_minus_delta() local
|
| H A D | test_misc_tcp_hdr_options.c | 141 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()
|
| H A D | test_tcp_hdr_options.c | 326 * an example usage on skops->skb_len. in data_opt_len() 365 if (skops->skb_len) in handle_hdr_opt_len() 389 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
|
| /linux/net/nfc/hci/ |
| H A D | hcp.c | 47 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/drivers/bluetooth/ |
| H A D | btrsi.c | 75 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/drivers/net/ethernet/sfc/siena/ |
| H A D | tx.c | 146 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/drivers/net/wwan/t7xx/ |
| H A D | t7xx_netdev.c | 134 int skb_len = skb->len; in t7xx_ccmni_start_xmit() local 147 dev->stats.tx_bytes += skb_len; in t7xx_ccmni_start_xmit() 418 int pkt_type, skb_len; in t7xx_ccmni_recv_skb() local 437 skb_len = skb->len; in t7xx_ccmni_recv_skb() 440 net_dev->stats.rx_bytes += skb_len; in t7xx_ccmni_recv_skb()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | htc.c | 176 unsigned int skb_len; in ath10k_htc_send() local 188 skb_len = skb->len; in ath10k_htc_send() 189 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send() 222 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send() 651 unsigned int skb_len; in ath10k_htc_send_bundle() local 654 skb_len = bundle_skb->len; in ath10k_htc_send_bundle() 655 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send_bundle() 665 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send_bundle() 685 ret, ep->eid, skb_queue_len(&ep->tx_req_head), cn, skb_len); in ath10k_htc_send_bundle()
|
| /linux/include/trace/events/ |
| H A D | net.h | 80 unsigned int skb_len), 82 TP_ARGS(skb, rc, dev, skb_len), 94 __entry->len = skb_len;
|
| H A D | tcp.h | 343 __field(int, skb_len) 350 __entry->skb_len = skb ? skb->len : 0; 356 __entry->skb_addr, __entry->skb_len, __entry->msg_left,
|
| /linux/net/vmw_vsock/ |
| H A D | virtio_transport_common.c | 260 size_t skb_len; in virtio_transport_alloc_skb() local 262 skb_len = VIRTIO_VSOCK_SKB_HEADROOM; in virtio_transport_alloc_skb() 265 skb_len += payload_len; in virtio_transport_alloc_skb() 267 skb = virtio_vsock_alloc_skb(skb_len, GFP_KERNEL); in virtio_transport_alloc_skb() 386 size_t skb_len; in virtio_transport_send_pkt_info() local 388 skb_len = min(max_skb_len, rest_len); in virtio_transport_send_pkt_info() 390 skb = virtio_transport_alloc_skb(info, skb_len, can_zcopy, in virtio_transport_send_pkt_info() 404 skb_len == rest_len && info->op == VIRTIO_VSOCK_OP_RW) { in virtio_transport_send_pkt_info() 428 if (WARN_ONCE(ret != skb_len, in virtio_transport_send_pkt_info() 430 ret, skb_len)) in virtio_transport_send_pkt_info()
|
| /linux/drivers/nfc/st95hf/ |
| H A D | core.c | 698 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/drivers/net/wireless/marvell/mwifiex/ |
| H A D | tdls.c | 636 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/drivers/atm/ |
| H A D | fore200e.c | 1478 int skb_len; in fore200e_send() local 1505 skb_len = tx_len = skb->len - 4; in fore200e_send() 1513 skb_len = skb->len; in fore200e_send() 1520 tx_len = skb_len; in fore200e_send() 1523 if ((vcc->qos.aal == ATM_AAL0) && (skb_len % ATM_CELL_PAYLOAD)) { in fore200e_send() 1528 tx_len = ((skb_len / ATM_CELL_PAYLOAD) + 1) * ATM_CELL_PAYLOAD; in fore200e_send() 1543 memcpy(data, skb_data, skb_len); in fore200e_send() 1544 if (skb_len < tx_len) in fore200e_send() 1545 memset(data + skb_len, 0x00, tx_len - skb_len); in fore200e_send() 1619 tpd->tsd[0].length, skb_len); in fore200e_send() [all …]
|
| /linux/drivers/staging/most/net/ |
| H A D | net.c | 436 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/net/bluetooth/ |
| H A D | af_bluetooth.c | 473 int skb_len = skb_headlen(skb); in bt_sock_stream_recvmsg() local 475 if (chunk <= skb_len) { in bt_sock_stream_recvmsg() 480 __skb_pull(skb, skb_len); in bt_sock_stream_recvmsg() 481 chunk -= skb_len; in bt_sock_stream_recvmsg()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
| H A D | trx.c | 60 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/drivers/net/usb/ |
| H A D | aqc111.c | 1088 u32 skb_len; in aqc111_rx_fixup() local 1093 skb_len = skb->len; in aqc111_rx_fixup() 1094 if (skb_len < sizeof(desc_hdr)) in aqc111_rx_fixup() 1098 skb_trim(skb, skb_len - sizeof(desc_hdr)); in aqc111_rx_fixup() 1105 start_of_descs = skb_len - ((pkt_count + 1) * sizeof(desc_hdr)); in aqc111_rx_fixup() 1114 if (pkt_count * 2 + desc_offset >= skb_len) in aqc111_rx_fixup()
|
| /linux/drivers/net/caif/ |
| H A D | caif_virtio.c | 258 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()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| H A D | trx.c | 348 u32 skb_len, pkt_len, drvinfo_len; in _rtl_rx_process() local 362 skb_len = skb->len; in _rtl_rx_process() 366 WARN_ON(skb_len < (pkt_len + RTL_RX_DESC_SIZE + drvinfo_len)); in _rtl_rx_process()
|
| /linux/drivers/net/wireguard/ |
| H A D | socket.c | 170 size_t skb_len = skb->len; in wg_socket_send_skb_to_peer() local 183 peer->tx_bytes += skb_len; in wg_socket_send_skb_to_peer()
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_common.h | 57 u32 skb_len; member
|