Home
last modified time | relevance | path

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

12

/linux-6.6.21/net/ipv4/
Dip_output.c952 struct inet_cork *cork, in __ip_append_data() argument
962 struct ip_options *opt = cork->opt; in __ip_append_data()
972 struct rtable *rt = (struct rtable *)cork->dst; in __ip_append_data()
980 mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; in __ip_append_data()
981 paged = !!cork->gso_size; in __ip_append_data()
983 if (cork->tx_flags & SKBTX_ANY_TSTAMP && in __ip_append_data()
993 if (cork->length + length > maxnonfragsize - fragheaderlen) { in __ip_append_data()
1006 (!(flags & MSG_MORE) || cork->gso_size) && in __ip_append_data()
1051 cork->length += length; in __ip_append_data()
1178 skb_shinfo(skb)->tx_flags = cork->tx_flags; in __ip_append_data()
[all …]
Dtcp_bpf.c384 bool cork = false, enospc = sk_msg_full(msg), redir_ingress; in tcp_bpf_send_verdict() local
405 if (!psock->cork) { in tcp_bpf_send_verdict()
406 psock->cork = kzalloc(sizeof(*psock->cork), in tcp_bpf_send_verdict()
408 if (!psock->cork) in tcp_bpf_send_verdict()
411 memcpy(psock->cork, msg, sizeof(*msg)); in tcp_bpf_send_verdict()
439 if (psock->cork) { in tcp_bpf_send_verdict()
440 cork = true; in tcp_bpf_send_verdict()
441 psock->cork = NULL; in tcp_bpf_send_verdict()
458 if (!cork) in tcp_bpf_send_verdict()
461 if (cork) { in tcp_bpf_send_verdict()
[all …]
Dudp.c887 struct inet_cork *cork) in udp_send_skb() argument
908 if (cork->gso_size) { in udp_send_skb()
912 if (hlen + cork->gso_size > cork->fragsize) { in udp_send_skb()
916 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_send_skb()
930 if (datalen > cork->gso_size) { in udp_send_skb()
931 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb()
934 cork->gso_size); in udp_send_skb()
984 struct flowi4 *fl4 = &inet->cork.fl.u.ip4; in udp_push_pending_frames()
992 err = udp_send_skb(skb, fl4, &inet->cork.base); in udp_push_pending_frames()
1071 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.c837 fl4 = &newinet->cork.fl.u.ip4; in inet_csk_route_child_sock()
1489 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
1497 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
Dsyncookies.c447 inet_sk(ret)->cork.fl.u.ip4 = fl4; in cookie_v4_check()
Daf_inet.c1268 fl4 = &inet->cork.fl.u.ip4; in inet_sk_reselect_saddr()
1326 fl4 = &inet->cork.fl.u.ip4; in inet_sk_rebuild_header()
/linux-6.6.21/net/ipv6/
Dip6_output.c1396 static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, in ip6_setup_cork() argument
1407 cork->base.dst = &rt->dst; in ip6_setup_cork()
1454 cork->base.fragsize = mtu; in ip6_setup_cork()
1455 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1456 cork->base.tx_flags = 0; in ip6_setup_cork()
1457 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1458 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
1461 cork->base.flags |= IPCORK_ALLFRAG; in ip6_setup_cork()
1462 cork->base.length = 0; in ip6_setup_cork()
1464 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
[all …]
Dudp.c1215 struct inet_cork *cork) in udp_v6_send_skb() argument
1235 if (cork->gso_size) { in udp_v6_send_skb()
1239 if (hlen + cork->gso_size > cork->fragsize) { in udp_v6_send_skb()
1243 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb()
1257 if (datalen > cork->gso_size) { in udp_v6_send_skb()
1258 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb()
1261 cork->gso_size); in udp_v6_send_skb()
1312 err = udp_v6_send_skb(skb, &inet_sk(sk)->cork.fl.u.ip6, in udp_v6_push_pending_frames()
1313 &inet_sk(sk)->cork.base); in udp_v6_push_pending_frames()
1331 struct inet_cork_full cork; in udpv6_sendmsg() local
[all …]
Draw.c523 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames()
524 opt = inet6_sk(sk)->cork.opt; in rawv6_push_pending_frames()
/linux-6.6.21/include/linux/
Dskmsg.h86 struct sk_msg *cork; member
423 if (psock->cork) { in sk_psock_cork_free()
424 sk_msg_free(psock->sk, psock->cork); in sk_psock_cork_free()
425 kfree(psock->cork); in sk_psock_cork_free()
426 psock->cork = NULL; in sk_psock_cork_free()
Dipv6.h293 struct inet6_cork cork; member
/linux-6.6.21/include/net/
Dip.h228 struct inet_cork *cork);
237 struct inet_cork *cork, unsigned int flags);
243 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
Dipv6.h1113 struct inet_cork_full *cork,
1121 struct inet_cork_full *cork);
1125 return __ip6_make_skb(sk, &sk->sk_write_queue, &inet_sk(sk)->cork, in ip6_finish_skb()
1126 &inet6_sk(sk)->cork); in ip6_finish_skb()
Dinet_sock.h243 struct inet_cork_full cork; member
/linux-6.6.21/net/l2tp/
Dl2tp_ip.c460 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
500 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
Dl2tp_core.c1093 ret = l2tp_xmit_queue(tunnel, skb, &inet->cork.fl); in l2tp_xmit_core()
/linux-6.6.21/net/mptcp/
Dsockopt.c641 msk->cork = !!val; in mptcp_setsockopt_sol_tcp_cork()
1336 return mptcp_put_int_option(msk, optval, optlen, msk->cork); in mptcp_getsockopt_sol_tcp()
1446 __tcp_sock_set_cork(ssk, !!msk->cork); in sync_socket_options()
Dprotocol.h300 cork:1, member
/linux-6.6.21/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.6.21/include/net/sctp/
Dstructs.h1116 char cork; member
1135 q->cork = 1; in sctp_outq_cork()
/linux-6.6.21/net/dccp/
Doutput.c138 err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); in dccp_transmit_skb()
Dipv4.c77 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect()
/linux-6.6.21/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