Home
last modified time | relevance | path

Searched refs:tcp_flags (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_tcp_hdr_options.c353 __u8 tcp_flags = skops_tcp_flags(skops); in handle_hdr_opt_len() local
355 if ((tcp_flags & TCPHDR_SYNACK) == TCPHDR_SYNACK) in handle_hdr_opt_len()
358 if (tcp_flags & TCPHDR_SYN) in handle_hdr_opt_len()
361 if (tcp_flags & TCPHDR_FIN) in handle_hdr_opt_len()
376 __u8 tcp_flags = skops_tcp_flags(skops); in handle_write_hdr_opt() local
379 if ((tcp_flags & TCPHDR_SYNACK) == TCPHDR_SYNACK) in handle_write_hdr_opt()
382 if (tcp_flags & TCPHDR_SYN) in handle_write_hdr_opt()
385 if (tcp_flags & TCPHDR_FIN) in handle_write_hdr_opt()
Dtest_misc_tcp_hdr_options.c244 __u8 tcp_flags = skops_tcp_flags(skops); in handle_hdr_opt_len() local
246 if ((tcp_flags & TCPHDR_SYNACK) == TCPHDR_SYNACK) in handle_hdr_opt_len()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_output.c313 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_CWR; in tcp_ecn_send_synack()
315 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_ECE; in tcp_ecn_send_synack()
339 TCP_SKB_CB(skb)->tcp_flags |= TCPHDR_ECE | TCPHDR_CWR; in tcp_ecn_send_syn()
352 TCP_SKB_CB(skb)->tcp_flags &= ~(TCPHDR_ECE | TCPHDR_CWR); in tcp_ecn_clear_syn()
396 TCP_SKB_CB(skb)->tcp_flags = flags; in tcp_init_nondata_skb()
1283 if (unlikely(tcb->tcp_flags & TCPHDR_SYN)) { in __tcp_transmit_skb()
1297 tcb->tcp_flags |= TCPHDR_PSH; in __tcp_transmit_skb()
1335 tcb->tcp_flags); in __tcp_transmit_skb()
1353 if (likely(!(tcb->tcp_flags & TCPHDR_SYN))) { in __tcp_transmit_skb()
1378 if (likely(tcb->tcp_flags & TCPHDR_ACK)) in __tcp_transmit_skb()
[all …]
Dtcp_fastopen.c211 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_SYN; in tcp_fastopen_add_skb()
222 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_fastopen_add_skb()
582 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) { in tcp_fastopen_active_disable_ofo_check()
Dtcp_ipv4.c1826 ((TCP_SKB_CB(tail)->tcp_flags | in tcp_add_backlog()
1827 TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_SYN | TCPHDR_RST | TCPHDR_URG)) || in tcp_add_backlog()
1828 !((TCP_SKB_CB(tail)->tcp_flags & in tcp_add_backlog()
1829 TCP_SKB_CB(skb)->tcp_flags) & TCPHDR_ACK) || in tcp_add_backlog()
1830 ((TCP_SKB_CB(tail)->tcp_flags ^ in tcp_add_backlog()
1831 TCP_SKB_CB(skb)->tcp_flags) & (TCPHDR_ECE | TCPHDR_CWR)) || in tcp_add_backlog()
1866 TCP_SKB_CB(tail)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_add_backlog()
1932 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
Dtcp.c664 TCP_SKB_CB(skb)->tcp_flags |= TCPHDR_PSH; in tcp_mark_push()
680 tcb->tcp_flags = TCPHDR_ACK; in skb_entail()
1068 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_PSH; in do_tcp_sendpages()
1390 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_PSH; in tcp_sendmsg_locked()
1613 if (unlikely(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { in tcp_recv_skb()
1617 if (offset < skb->len || (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN)) { in tcp_recv_skb()
1692 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) { in tcp_read_sock()
2196 if (unlikely(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { in tcp_recvmsg()
2202 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_recvmsg()
2325 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_recvmsg()
[all …]
Dtcp_input.c1478 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1480 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
3289 if (likely(!(scb->tcp_flags & TCPHDR_SYN))) { in tcp_clean_rtx_queue()
4653 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4721 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_ofo_queue()
5024 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
5164 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
5181 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5225 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.h204 __be16 tcp_flags; /* Union of seen TCP flags. */ member
267 void ovs_flow_stats_update(struct sw_flow *, __be16 tcp_flags,
270 unsigned long *used, __be16 *tcp_flags);
Dflow.c59 void ovs_flow_stats_update(struct sw_flow *flow, __be16 tcp_flags, in ovs_flow_stats_update() argument
103 new_stats->tcp_flags = tcp_flags; in ovs_flow_stats_update()
119 stats->tcp_flags |= tcp_flags; in ovs_flow_stats_update()
127 unsigned long *used, __be16 *tcp_flags) in ovs_flow_stats_get() argument
132 *tcp_flags = 0; in ovs_flow_stats_get()
146 *tcp_flags |= stats->tcp_flags; in ovs_flow_stats_get()
168 stats->tcp_flags = 0; in ovs_flow_stats_clear()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c185 u16 tcp_flags, tcp_flags_mask; in nfp_flower_compile_ip_ext() local
189 tcp_flags = be16_to_cpu(match.key->flags); in nfp_flower_compile_ip_ext()
192 if (tcp_flags & TCPHDR_FIN) in nfp_flower_compile_ip_ext()
197 if (tcp_flags & TCPHDR_SYN) in nfp_flower_compile_ip_ext()
202 if (tcp_flags & TCPHDR_RST) in nfp_flower_compile_ip_ext()
207 if (tcp_flags & TCPHDR_PSH) in nfp_flower_compile_ip_ext()
212 if (tcp_flags & TCPHDR_URG) in nfp_flower_compile_ip_ext()
Doffload.c480 u32 tcp_flags; in nfp_flower_calculate_key_layers() local
483 tcp_flags = be16_to_cpu(tcp.key->flags); in nfp_flower_calculate_key_layers()
485 if (tcp_flags & ~NFP_FLOWER_SUPPORTED_TCPFLAGS) { in nfp_flower_calculate_key_layers()
493 if ((tcp_flags & (TCPHDR_PSH | TCPHDR_URG)) && in nfp_flower_calculate_key_layers()
494 !(tcp_flags & (TCPHDR_FIN | TCPHDR_SYN | TCPHDR_RST))) { in nfp_flower_calculate_key_layers()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c42 MLX5_SET(ste_##lookup_type, tag, tcp_ns, !!((spec)->tcp_flags & (1 << 8))); \
43 MLX5_SET(ste_##lookup_type, tag, tcp_cwr, !!((spec)->tcp_flags & (1 << 7))); \
44 MLX5_SET(ste_##lookup_type, tag, tcp_ece, !!((spec)->tcp_flags & (1 << 6))); \
45 MLX5_SET(ste_##lookup_type, tag, tcp_urg, !!((spec)->tcp_flags & (1 << 5))); \
46 MLX5_SET(ste_##lookup_type, tag, tcp_ack, !!((spec)->tcp_flags & (1 << 4))); \
47 MLX5_SET(ste_##lookup_type, tag, tcp_psh, !!((spec)->tcp_flags & (1 << 3))); \
48 MLX5_SET(ste_##lookup_type, tag, tcp_rst, !!((spec)->tcp_flags & (1 << 2))); \
49 MLX5_SET(ste_##lookup_type, tag, tcp_syn, !!((spec)->tcp_flags & (1 << 1))); \
50 MLX5_SET(ste_##lookup_type, tag, tcp_fin, !!((spec)->tcp_flags & (1 << 0))); \
882 spec->tcp_flags = MLX5_GET(fte_match_set_lyr_2_4, mask, tcp_flags); in dr_ste_copy_mask_spec()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dtx_tso.c292 u8 tcp_flags_mask, tcp_flags; in tso_start_new_packet() local
307 tcp_flags = ((u8 *)tcp_hdr(skb))[TCP_FLAGS_OFFSET] & ~tcp_flags_mask; in tso_start_new_packet()
316 ESF_DZ_TX_TSO_TCP_FLAGS, tcp_flags, in tso_start_new_packet()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip_output.c350 TCP_SKB_CB(skb)->tcp_flags = flags; in tcp_nip_init_nondata_skb()
524 if (unlikely(tcb->tcp_flags & TCPHDR_SYN)) in __tcp_nip_transmit_skb()
558 tcb->tcp_flags); in __tcp_nip_transmit_skb()
569 if (likely(!(tcb->tcp_flags & TCPHDR_SYN))) in __tcp_nip_transmit_skb()
574 ack = tcb->tcp_flags & TCPHDR_ACK; in __tcp_nip_transmit_skb()
583 if (likely(tcb->tcp_flags & TCPHDR_ACK)) in __tcp_nip_transmit_skb()
999 TCP_SKB_CB(tskb)->tcp_flags |= TCPHDR_FIN; in tcp_nip_send_fin()
1308 TCP_SKB_CB(skb)->tcp_flags |= TCPHDR_PSH; in tcp_nip_write_wakeup()
Dtcp_nip.c521 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_nip_close()
1420 tcb->tcp_flags = TCPHDR_ACK; in skb_nip_entail()
1545 TCP_SKB_CB(skb)->tcp_flags &= ~TCPHDR_PSH; in tcp_nip_sendmsg()
1698 if (unlikely(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { in tcp_nip_recvmsg()
1704 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_nip_recvmsg()
1792 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_nip_recvmsg()
1901 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_nip_fill_cb()
Dtcp_nip_input.c274 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_nip_try_coalesce()
339 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_nip_ofo_queue()
612 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_nip_data_queue()
808 if (likely(!(scb->tcp_flags & TCPHDR_SYN))) { in tcp_nip_clean_rtx_queue()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c140 PRINT_MASKED_VAL_L2(u16, tcp_flags, tcp_flags, p, "%x"); in print_lyr_2_4_hdrs()
/kernel/linux/linux-5.10/include/linux/qed/
Dqed_iscsi_if.h62 u8 tcp_flags; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.h76 u8 tcp_flags; member
Dqed_iscsi.c66 u16 tcp_flags; member
345 p_tcp->flags = cpu_to_le16(p_conn->tcp_flags); in qed_sp_iscsi_conn_offload()
416 p_tcp2->flags = cpu_to_le16(p_conn->tcp_flags); in qed_sp_iscsi_conn_offload()
1233 con->tcp_flags = conn_info->tcp_flags; in qed_iscsi_offload_conn()
/kernel/linux/linux-5.10/net/mptcp/
Doptions.c33 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { in mptcp_parse_option()
39 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK) in mptcp_parse_option()
666 if (unlikely(skb && TCP_SKB_CB(skb)->tcp_flags & TCPHDR_RST)) in mptcp_established_options()
Dsubflow.c746 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN)) in get_mapping_status()
750 TCP_SKB_CB(skb)->tcp_flags); in get_mapping_status()
862 bool fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in mptcp_subflow_discard_data()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dcnic.c2068 if (kwqe1->tcp_flags & L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE) in cnic_init_storm_conn_bufs()
3470 u8 tcp_flags = 0; in cnic_cm_conn_req() local
3529 if (csk->tcp_flags & SK_TCP_NO_DELAY_ACK) in cnic_cm_conn_req()
3530 tcp_flags |= L4_KWQ_CONNECT_REQ1_NO_DELAY_ACK; in cnic_cm_conn_req()
3531 if (csk->tcp_flags & SK_TCP_KEEP_ALIVE) in cnic_cm_conn_req()
3532 tcp_flags |= L4_KWQ_CONNECT_REQ1_KEEP_ALIVE; in cnic_cm_conn_req()
3533 if (csk->tcp_flags & SK_TCP_NAGLE) in cnic_cm_conn_req()
3534 tcp_flags |= L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE; in cnic_cm_conn_req()
3535 if (csk->tcp_flags & SK_TCP_TIMESTAMP) in cnic_cm_conn_req()
3536 tcp_flags |= L4_KWQ_CONNECT_REQ1_TIME_STAMP; in cnic_cm_conn_req()
[all …]
Dcnic_if.h286 unsigned long tcp_flags; member
/kernel/linux/linux-5.10/drivers/scsi/qedi/
Dqedi_iscsi.c544 SET_FIELD(conn_info->tcp_flags, TCP_OFFLOAD_PARAMS_TS_EN, 1); in qedi_iscsi_offload_conn()
545 SET_FIELD(conn_info->tcp_flags, TCP_OFFLOAD_PARAMS_DA_EN, 1); in qedi_iscsi_offload_conn()
546 SET_FIELD(conn_info->tcp_flags, TCP_OFFLOAD_PARAMS_DA_CNT_EN, 1); in qedi_iscsi_offload_conn()
547 SET_FIELD(conn_info->tcp_flags, TCP_OFFLOAD_PARAMS_KA_EN, 1); in qedi_iscsi_offload_conn()

12