Home
last modified time | relevance | path

Searched refs:tcph (Results 26 – 42 of 42) sorted by relevance

12

/openbmc/linux/net/sched/
H A Dact_ct.c513 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv4() argument
556 *tcph = (void *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4()
586 struct tcphdr **tcph) in tcf_ct_flow_table_fill_tuple_ipv6() argument
625 *tcph = (void *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6()
660 struct tcphdr *tcph = NULL; in tcf_ct_flow_table_lookup() local
668 if (!tcf_ct_flow_table_fill_tuple_ipv4(skb, &tuple, &tcph)) in tcf_ct_flow_table_lookup()
672 if (!tcf_ct_flow_table_fill_tuple_ipv6(skb, &tuple, &tcph)) in tcf_ct_flow_table_lookup()
702 if (tcph && (unlikely(tcph->fin || tcph->rst))) { in tcf_ct_flow_table_lookup()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c1012 const struct tcphdr *tcph; in chtls_pass_accept_rpl() local
1056 tcph = (struct tcphdr *)((u8 *)(req + 1) + in chtls_pass_accept_rpl()
1058 if (tcph->ece && tcph->cwr) in chtls_pass_accept_rpl()
1299 struct tcphdr *tcph; in chtls_pass_accept_request() local
1354 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request()
1358 tcph = (struct tcphdr *)(ip6h + 1); in chtls_pass_accept_request()
1373 tcp_rsk(oreq)->rcv_isn = ntohl(tcph->seq); in chtls_pass_accept_request()
1374 chtls_set_req_port(oreq, tcph->source, tcph->dest); in chtls_pass_accept_request()
1391 th_ecn = tcph->ece && tcph->cwr; in chtls_pass_accept_request()
/openbmc/linux/drivers/net/ethernet/ibm/
H A Dibmveth.c1217 struct tcphdr *tcph; in ibmveth_rx_mss_helper() local
1246 tcph = (struct tcphdr *)(skb->data + offset); in ibmveth_rx_mss_helper()
1250 skb_shinfo(skb)->gso_size = ntohs(tcph->check); in ibmveth_rx_mss_helper()
1251 tcph->check = 0; in ibmveth_rx_mss_helper()
1255 hdr_len = offset + tcph->doff * 4; in ibmveth_rx_mss_helper()
1310 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() local
1312 if (tcph->check == 0x0000) { in ibmveth_rx_csum_helper()
1316 tcph->check = in ibmveth_rx_csum_helper()
1320 tcph->check = in ibmveth_rx_csum_helper()
/openbmc/linux/net/netfilter/
H A Dnf_flow_table_core.c460 struct tcphdr *tcph; in nf_flow_nat_port_tcp() local
462 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_tcp()
463 inet_proto_csum_replace2(&tcph->check, skb, port, new_port, false); in nf_flow_nat_port_tcp()
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c399 struct tcphdr *tcph = (struct tcphdr *)hdr->buffer; in iavf_fill_fdir_tcp_hdr() local
404 tcph->source = fltr->ip_data.src_port; in iavf_fill_fdir_tcp_hdr()
409 tcph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_tcp_hdr()
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Dcm.c2461 const struct tcphdr *tcph; in accept_cr() local
2465 tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) + in accept_cr()
2468 tcph = (const void *)(req + 1) + in accept_cr()
2470 if (tcph->ece && tcph->cwr) in accept_cr()
4063 struct tcphdr *tcph; in rx_pkt() local
4128 tcph = (struct tcphdr *)(iph + 1); in rx_pkt()
4135 ntohs(tcph->source), iph->tos); in rx_pkt()
4138 iph->daddr, iph->saddr, tcph->dest, in rx_pkt()
4139 tcph->source, iph->tos); in rx_pkt()
4176 window = (__force u16) htons((__force u16)tcph->window); in rx_pkt()
[all …]
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dpuda.h63 u8 *tcph; member
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_fdir.c838 struct tcphdr *tcph; in ice_vc_fdir_parse_pattern() local
882 tcph = (struct tcphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern()
890 input->ip.v4.src_port = tcph->source; in ice_vc_fdir_parse_pattern()
891 input->ip.v4.dst_port = tcph->dest; in ice_vc_fdir_parse_pattern()
893 input->ip.v6.src_port = tcph->source; in ice_vc_fdir_parse_pattern()
894 input->ip.v6.dst_port = tcph->dest; in ice_vc_fdir_parse_pattern()
/openbmc/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c1133 const struct tcphdr *tcph; in cxgbit_pass_accept_rpl() local
1193 tcph = (struct tcphdr *)((u8 *)(req + 1) + in cxgbit_pass_accept_rpl()
1196 tcph = (struct tcphdr *)((u8 *)(req + 1) + in cxgbit_pass_accept_rpl()
1199 if (tcph->ece && tcph->cwr) in cxgbit_pass_accept_rpl()
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c1679 struct tcphdr *tcph; in qed_iwarp_parse_rx_pkt() local
1756 tcph = (struct tcphdr *)((u8 *)iph + ip_hlen); in qed_iwarp_parse_rx_pkt()
1758 if (!tcph->syn) { in qed_iwarp_parse_rx_pkt()
1761 iph->ihl, tcph->source, tcph->dest); in qed_iwarp_parse_rx_pkt()
1765 cm_info->local_port = ntohs(tcph->dest); in qed_iwarp_parse_rx_pkt()
1766 cm_info->remote_port = ntohs(tcph->source); in qed_iwarp_parse_rx_pkt()
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c1213 struct tcphdr *tcph; in wx_tso() local
1231 tcph = enc ? inner_tcp_hdr(skb) : tcp_hdr(skb); in wx_tso()
1234 tcph->check = ~csum_tcpudp_magic(iph->saddr, in wx_tso()
1243 tcph = enc ? inner_tcp_hdr(skb) : tcp_hdr(skb); in wx_tso()
1245 tcph->check = ~csum_ipv6_magic(&ipv6h->saddr, in wx_tso()
/openbmc/linux/net/ipv4/
H A Droute.c3182 struct tcphdr *tcph; in inet_rtm_getroute_build_skb() local
3184 tcph = skb_put_zero(skb, sizeof(struct tcphdr)); in inet_rtm_getroute_build_skb()
3185 tcph->source = sport; in inet_rtm_getroute_build_skb()
3186 tcph->dest = dport; in inet_rtm_getroute_build_skb()
3187 tcph->doff = sizeof(struct tcphdr) / 4; in inet_rtm_getroute_build_skb()
3188 tcph->rst = 1; in inet_rtm_getroute_build_skb()
3189 tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), in inet_rtm_getroute_build_skb()
/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.c8207 (lro->tcph->source != tcp->source) || in check_for_socket_match()
8208 (lro->tcph->dest != tcp->dest)) in check_for_socket_match()
8225 lro->tcph = tcp; in initiate_new_session()
8249 struct tcphdr *tcp = lro->tcph; in update_L3L4_header()
8360 struct tcphdr *tcph; in s2io_club_tcp_session() local
8373 tcph = (struct tcphdr *)*tcp; in s2io_club_tcp_session()
8374 *tcp_len = get_l4_pyld_length(ip, tcph); in s2io_club_tcp_session()
8378 if (check_for_socket_match(l_lro, ip, tcph)) in s2io_club_tcp_session()
8388 ntohl(tcph->seq)); in s2io_club_tcp_session()
8395 if (!verify_l3_l4_lro_capable(l_lro, ip, tcph, in s2io_club_tcp_session()
[all …]
H A Ds2io.h677 struct tcphdr *tcph; member
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c434 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_hdr_csum() local
436 tcph->check = 0; in enetc_tso_hdr_csum()
478 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_complete_csum() local
480 tcph->check = csum_final; in enetc_tso_complete_csum()
/openbmc/linux/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c1022 struct tcphdr *tcph = inner_tcp_hdr(skb); in vmxnet3_prepare_inner_tso() local
1027 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_inner_tso()
1032 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0, in vmxnet3_prepare_inner_tso()
1041 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso() local
1047 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_tso()
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c7913 struct tcphdr *tcph = NULL; in tg3_start_xmit() local
7981 tcph = tcp_hdr(skb); in tg3_start_xmit()
7982 tcp_csum = tcph->check; in tg3_start_xmit()
7987 tcph->check = 0; in tg3_start_xmit()
7990 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, in tg3_start_xmit()
8112 tcph->check = tcp_csum; in tg3_start_xmit()

12