Home
last modified time | relevance | path

Searched refs:cork (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.12.1/net/ipv4/
Dip_output.c955 struct inet_cork *cork, in __ip_append_data() argument
965 struct ip_options *opt = cork->opt; in __ip_append_data()
975 struct rtable *rt = dst_rtable(cork->dst); in __ip_append_data()
983 mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; in __ip_append_data()
984 paged = !!cork->gso_size; in __ip_append_data()
992 if (cork->length + length > maxnonfragsize - fragheaderlen) { in __ip_append_data()
1005 (!(flags & MSG_MORE) || cork->gso_size) && in __ip_append_data()
1050 cork->length += length; in __ip_append_data()
1052 hold_tskey = cork->tx_flags & SKBTX_ANY_TSTAMP && in __ip_append_data()
1182 skb_shinfo(skb)->tx_flags = cork->tx_flags; in __ip_append_data()
[all …]
Dtcp_bpf.c385 bool cork = false, enospc = sk_msg_full(msg), redir_ingress; in tcp_bpf_send_verdict() local
406 if (!psock->cork) { in tcp_bpf_send_verdict()
407 psock->cork = kzalloc(sizeof(*psock->cork), in tcp_bpf_send_verdict()
409 if (!psock->cork) in tcp_bpf_send_verdict()
412 memcpy(psock->cork, msg, sizeof(*msg)); in tcp_bpf_send_verdict()
440 if (psock->cork) { in tcp_bpf_send_verdict()
441 cork = true; in tcp_bpf_send_verdict()
442 psock->cork = NULL; in tcp_bpf_send_verdict()
459 if (!cork) in tcp_bpf_send_verdict()
462 if (cork) { in tcp_bpf_send_verdict()
[all …]
Dudp.c907 struct inet_cork *cork) in udp_send_skb() argument
928 if (cork->gso_size) { in udp_send_skb()
932 if (hlen + cork->gso_size > cork->fragsize) { in udp_send_skb()
936 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_send_skb()
949 if (datalen > cork->gso_size) { in udp_send_skb()
950 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb()
953 cork->gso_size); in udp_send_skb()
1005 struct flowi4 *fl4 = &inet->cork.fl.u.ip4; in udp_push_pending_frames()
1013 err = udp_send_skb(skb, fl4, &inet->cork.base); in udp_push_pending_frames()
1093 fl4 = &inet->cork.fl.u.ip4; in udp_sendmsg()
[all …]
Ddatagram.c48 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
Dinet_connection_sock.c860 fl4 = &newinet->cork.fl.u.ip4; in inet_csk_route_child_sock()
1591 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
1599 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
Dsyncookies.c493 inet_sk(ret)->cork.fl.u.ip4 = fl4; in cookie_v4_check()
Daf_inet.c1272 fl4 = &inet->cork.fl.u.ip4; in inet_sk_reselect_saddr()
1330 fl4 = &inet->cork.fl.u.ip4; in inet_sk_rebuild_header()
/linux-6.12.1/net/ipv6/
Dip6_output.c1341 static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, in ip6_setup_cork() argument
1352 cork->base.dst = &rt->dst; in ip6_setup_cork()
1400 cork->base.fragsize = mtu; in ip6_setup_cork()
1401 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1402 cork->base.tx_flags = 0; in ip6_setup_cork()
1403 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1404 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
1406 cork->base.length = 0; in ip6_setup_cork()
1407 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
1423 struct inet_cork *cork = &cork_full->base; in __ip6_append_data() local
[all …]
Dudp.c1223 struct inet_cork *cork) in udp_v6_send_skb() argument
1243 if (cork->gso_size) { in udp_v6_send_skb()
1247 if (hlen + cork->gso_size > cork->fragsize) { in udp_v6_send_skb()
1251 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb()
1264 if (datalen > cork->gso_size) { in udp_v6_send_skb()
1265 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb()
1268 cork->gso_size); in udp_v6_send_skb()
1321 err = udp_v6_send_skb(skb, &inet_sk(sk)->cork.fl.u.ip6, in udp_v6_push_pending_frames()
1322 &inet_sk(sk)->cork.base); in udp_v6_push_pending_frames()
1340 struct inet_cork_full cork; in udpv6_sendmsg() local
[all …]
Draw.c530 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames()
531 opt = inet6_sk(sk)->cork.opt; in rawv6_push_pending_frames()
/linux-6.12.1/include/linux/
Dskmsg.h90 struct sk_msg *cork; member
435 if (psock->cork) { in sk_psock_cork_free()
436 sk_msg_free(psock->sk, psock->cork); in sk_psock_cork_free()
437 kfree(psock->cork); in sk_psock_cork_free()
438 psock->cork = NULL; in sk_psock_cork_free()
Dipv6.h272 struct inet6_cork cork; member
/linux-6.12.1/Documentation/networking/net_cachelines/
Dinet_sock.rst43 struct_inet_cork_full cork read_mostly - __tcp_transmi…
/linux-6.12.1/include/net/
Dip.h229 struct inet_cork *cork);
238 struct inet_cork *cork, unsigned int flags);
244 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
Dipv6.h1110 struct inet_cork_full *cork,
1118 struct inet_cork_full *cork);
1122 return __ip6_make_skb(sk, &sk->sk_write_queue, &inet_sk(sk)->cork, in ip6_finish_skb()
1123 &inet6_sk(sk)->cork); in ip6_finish_skb()
Dinet_sock.h241 struct inet_cork_full cork; member
/linux-6.12.1/net/l2tp/
Dl2tp_ip.c485 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
525 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
/linux-6.12.1/net/mptcp/
Dsockopt.c656 msk->cork = !!val; in __mptcp_setsockopt_sol_tcp_cork()
1391 return mptcp_put_int_option(msk, optval, optlen, msk->cork); in mptcp_getsockopt_sol_tcp()
1523 __tcp_sock_set_cork(ssk, !!msk->cork); in sync_socket_options()
Dprotocol.h312 cork:1, member
/linux-6.12.1/net/sctp/
Doutqueue.c312 if (!q->cork) in sctp_outq_tail()
761 if (q->cork) in sctp_outq_uncork()
762 q->cork = 0; in sctp_outq_uncork()
Dsm_sideeffect.c1476 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter()
1775 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter()
/linux-6.12.1/include/net/sctp/
Dstructs.h1113 char cork; member
1132 q->cork = 1; in sctp_outq_cork()
/linux-6.12.1/net/dccp/
Doutput.c138 err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); in dccp_transmit_skb()
Dipv4.c78 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect()
/linux-6.12.1/drivers/block/drbd/
Ddrbd_worker.c2089 int uncork, cork; in wait_for_work() local
2158 cork = nc ? nc->tcp_cork : 0; in wait_for_work()
2162 if (cork) in wait_for_work()

12