Home
last modified time | relevance | path

Searched refs:tcp_hdrlen (Results 1 – 25 of 71) sorted by relevance

123

/linux/net/netfilter/
A Dxt_TCPOPTSTRIP.c38 int tcp_hdrlen; in tcpoptstrip_mangle_packet() local
48 tcp_hdrlen = tcph->doff * 4; in tcpoptstrip_mangle_packet()
49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet()
52 if (skb_ensure_writable(skb, tcphoff + tcp_hdrlen)) in tcpoptstrip_mangle_packet()
63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()
66 if (i + optl > tcp_hdrlen) in tcpoptstrip_mangle_packet()
A Dxt_TCPMSS.c79 int len, tcp_hdrlen; in tcpmss_mangle_packet() local
97 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet()
99 if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) in tcpmss_mangle_packet()
117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet()
144 if (len > tcp_hdrlen) in tcpmss_mangle_packet()
148 if (tcp_hdrlen >= 15 * 4) in tcpmss_mangle_packet()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dtls_rxtx.c212 headln = skb_transport_offset(skb) + tcp_hdrlen(skb); in mlx5e_tls_handle_ooo()
228 headln = skb_transport_offset(skb) + tcp_hdrlen(skb); in mlx5e_tls_handle_ooo()
266 datalen = skb->len - (skb_transport_offset(skb) + tcp_hdrlen(skb)); in mlx5e_tls_handle_tx_skb()
/linux/net/tls/
A Dtls_device_fallback.c235 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in fill_sg_in()
313 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_enc_skb()
375 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_sw_fallback()
/linux/tools/testing/selftests/bpf/progs/
A Dtest_misc_tcp_hdr_options.c140 if (tcp_hdrlen(th) < skops->skb_len) in check_active_hdr_in()
146 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in()
A Dtest_tcp_hdr_options.c392 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
/linux/include/linux/
A Dtcp.h34 static inline unsigned int tcp_hdrlen(const struct sk_buff *skb) in tcp_hdrlen() function
495 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
/linux/tools/testing/selftests/bpf/
A Dtest_tcp_hdr_options.h95 static inline unsigned int tcp_hdrlen(const struct tcphdr *th) in tcp_hdrlen() function
/linux/net/core/
A Dtso.c74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
/linux/drivers/net/ethernet/google/gve/
A Dgve_tx.c288 tcp_hdrlen(skb) : skb_headlen(skb); in gve_skb_fifo_bytes_required()
445 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
513 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
A Dgve_tx_dqo.c389 header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in gve_prep_tso()
601 const int header_len = skb_checksum_start_offset(skb) + tcp_hdrlen(skb); in gve_can_send_tso()
/linux/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_trace.h41 skb_transport_offset(skb) + tcp_hdrlen(skb);
/linux/include/net/
A Drequest_sock.h47 u32 tcp_hdrlen; member
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dtx.c808 tcp_hdrlen(tmp) + tmp->data_len; in iwl_mvm_tx_tso_segment()
852 tcp_hdrlen(skb); in iwl_mvm_tx_tso()
914 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_tso()
1175 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_skb_sta()
/linux/drivers/net/ethernet/atheros/atlx/
A Datl1.c2118 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1_tso()
2123 iph->daddr, tcp_hdrlen(skb), in atl1_tso()
2127 ptpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1_tso()
2147 ptpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1_tso()
2209 hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1_tx_map()
2371 tcp_hdrlen(skb)); in atl1_xmit_frame()
/linux/drivers/net/ethernet/atheros/atl1e/
A Datl1e_main.c1613 tcp_hdrlen(skb); in atl1e_cal_tdp_req()
1648 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1e_tso_csum()
1664 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1716 map_len = hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1e_tx_map()
/linux/net/ipv4/
A Dtcp_fastopen.c189 __skb_pull(skb, tcp_hdrlen(skb)); in tcp_fastopen_add_skb()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_txrx.c602 ext->lso_sb = skb_transport_offset(skb) + tcp_hdrlen(skb); in otx2_sqe_add_ext()
909 payload_len = skb->len - (skb_transport_offset(skb) + tcp_hdrlen(skb)); in is_hw_tso_supported()
/linux/drivers/net/ethernet/synopsys/
A Ddwc-xlgmac-net.c84 pkt_info->header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in xlgmac_prep_tso()
85 pkt_info->tcp_header_len = tcp_hdrlen(skb); in xlgmac_prep_tso()
/linux/drivers/net/ethernet/atheros/atl1c/
A Datl1c_main.c2075 proto_hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1c_cal_tpd_req()
2110 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1c_tso_csum()
2135 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1c_tso_csum()
2222 map_len = hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1c_tx_map()
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
A Dchcr_ktls.c1015 pktlen = skb_transport_offset(skb) + tcp_hdrlen(skb); in chcr_ktls_write_tcp_options()
1910 skb_offset = skb_transport_offset(nskb) + tcp_hdrlen(nskb); in chcr_ktls_sw_fallback()
1941 skb_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in chcr_ktls_xmit()
/linux/drivers/net/ethernet/qualcomm/emac/
A Demac-mac.c1267 hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in emac_tso_csum()
1342 mapped_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in emac_tx_fill_tpd()
/linux/drivers/net/ethernet/hisilicon/hns/
A Dhns_enet.c35 (((SKB)->transport_header - (SKB)->mac_header) + tcp_hdrlen(SKB))
95 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw()
109 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw()
/linux/drivers/net/wireless/ath/wil6210/
A Dtxrx.c1692 (tcp_hdrlen(skb) & DMA_CFG_DESC_TX_0_L4_LENGTH_MSK); in wil_tx_desc_offload_setup()
1787 tcp_hdrlen(skb); in __wil_tx_vring_tso()
1817 tcp_hdr_len = tcp_hdrlen(skb); in __wil_tx_vring_tso()
/linux/drivers/net/ethernet/qlogic/qede/
A Dqede_fp.c234 cpu_to_le16(((tcp_hdrlen(skb) / 4) & in qede_set_params_for_ipv6_ext()
266 tcp_hdrlen(skb) - skb->data); in qede_get_skb_hlen()

Completed in 68 milliseconds

123