| /linux/net/ipv4/ |
| H A D | ip_output.c | 960 struct inet_cork *cork, in __ip_append_data() argument 970 struct ip_options *opt = cork->opt; in __ip_append_data() 980 struct rtable *rt = dst_rtable(cork->dst); in __ip_append_data() 988 mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; in __ip_append_data() 989 paged = !!cork->gso_size; in __ip_append_data() 997 if (cork->length + length > maxnonfragsize - fragheaderlen) { in __ip_append_data() 1010 (!(flags & MSG_MORE) || cork->gso_size) && in __ip_append_data() 1056 cork->length += length; in __ip_append_data() 1058 if (cork in __ip_append_data() 1298 ip_setup_cork(struct sock * sk,struct inet_cork * cork,struct ipcm_cookie * ipc,struct rtable ** rtp) ip_setup_cork() argument 1390 ip_cork_release(struct inet_cork * cork) ip_cork_release() argument 1406 __ip_make_skb(struct sock * sk,struct flowi4 * fl4,struct sk_buff_head * queue,struct inet_cork * cork) __ip_make_skb() argument 1543 __ip_flush_pending_frames(struct sock * sk,struct sk_buff_head * queue,struct inet_cork * cork) __ip_flush_pending_frames() argument 1564 ip_make_skb(struct sock * sk,struct flowi4 * fl4,int getfrag (void * from,char * to,int offset,int len,int odd,struct sk_buff * skb),void * from,int length,int transhdrlen,struct ipcm_cookie * ipc,struct rtable ** rtp,struct inet_cork * cork,unsigned int flags) ip_make_skb() argument [all...] |
| H A D | tcp_bpf.c | 442 bool cork = false, enospc = sk_msg_full(msg), redir_ingress; in tcp_bpf_send_verdict() 463 if (!psock->cork) { in tcp_bpf_send_verdict() 464 psock->cork = kzalloc_obj(*psock->cork, in tcp_bpf_send_verdict() 466 if (!psock->cork) { in tcp_bpf_send_verdict() 474 * element sg.curr. The next sendmsg() appends to the cork. in tcp_bpf_send_verdict() 477 memcpy(psock->cork, msg, sizeof(*msg)); in tcp_bpf_send_verdict() 521 * Another thread can make a cork while this one sends msg in tcp_bpf_send_verdict() 522 * without the socket lock. Leave that cork alone. in tcp_bpf_send_verdict() 524 if (psock->cork in tcp_bpf_send_verdict() 421 bool cork = false, enospc = sk_msg_full(msg), redir_ingress; tcp_bpf_send_verdict() local [all...] |
| H A D | udp.c | 1130 struct inet_cork *cork) in udp_send_skb() 1151 if (cork->gso_size) { in udp_send_skb() 1155 if (hlen + min(datalen, cork->gso_size) > cork->fragsize) { in udp_send_skb() 1159 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_send_skb() 1172 if (datalen > cork->gso_size) { in udp_send_skb() 1173 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb() 1176 cork->gso_size); in udp_send_skb() 1219 struct flowi4 *fl4 = &inet->cork.fl.u.ip4; in __udp_cmsg_send() 1227 err = udp_send_skb(skb, fl4, &inet->cork in __udp_cmsg_send() 1114 udp_send_skb(struct sk_buff * skb,struct flowi4 * fl4,struct inet_cork * cork) udp_send_skb() argument 1458 struct inet_cork cork; udp_sendmsg() local [all...] |
| H A D | datagram.c | 48 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
|
| H A D | inet_connection_sock.c | 816 fl4 = &newinet->cork.fl.u.ip4; in inet_csk_route_child_sock() 1597 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); 1605 dst = inet_csk_rebuild_route(sk, &inet->cork.fl);
|
| H A D | af_inet.c | 1279 fl4 = &inet->cork.fl.u.ip4; in inet_sk_reselect_saddr() 1329 fl4 = &inet->cork.fl.u.ip4; in inet_sk_rebuild_header()
|
| H A D | tcp_ipv4.c | 255 fl4 = &inet->cork.fl.u.ip4; in tcp_v4_connect()
|
| H A D | tcp_output.c | 1774 sk, skb, &inet->cork.fl);
|
| /linux/net/ipv6/ |
| H A D | ip6_output.c | 1377 static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, in ip6_setup_cork() 1382 struct inet6_cork *v6_cork = &cork->base6; in ip6_setup_cork() 1389 cork->base.dst = &rt->dst; in ip6_setup_cork() 1440 cork->base.fragsize = mtu; in ip6_setup_cork() 1441 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork() 1442 cork->base.tx_flags = 0; in ip6_setup_cork() 1443 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork() 1444 cork->base.priority = ipc6->sockc.priority; in ip6_setup_cork() 1445 sock_tx_timestamp(sk, &ipc6->sockc, &cork->base.tx_flags); in ip6_setup_cork() 1447 cork in ip6_setup_cork() 1374 ip6_setup_cork(struct sock * sk,struct inet_cork_full * cork,struct ipcm6_cookie * ipc6,struct rt6_info * rt) ip6_setup_cork() argument 1464 struct inet_cork *cork = &cork_full->base; __ip6_append_data() local 1897 ip6_cork_steal_dst(struct sk_buff * skb,struct inet_cork_full * cork) ip6_cork_steal_dst() argument 1905 ip6_cork_release(struct inet_cork_full * cork) ip6_cork_release() argument 1928 __ip6_make_skb(struct sock * sk,struct sk_buff_head * queue,struct inet_cork_full * cork) __ip6_make_skb() argument 2045 __ip6_flush_pending_frames(struct sock * sk,struct sk_buff_head * queue,struct inet_cork_full * cork) __ip6_flush_pending_frames() argument 2071 ip6_make_skb(struct sock * sk,int getfrag (void * from,char * to,int offset,int len,int odd,struct sk_buff * skb),void * from,size_t length,int transhdrlen,struct ipcm6_cookie * ipc6,struct rt6_info * rt,unsigned int flags,struct inet_cork_full * cork) ip6_make_skb() argument [all...] |
| H A D | udp.c | 1368 struct inet_cork *cork) 1389 if (cork->gso_size) { in udp_v6_send_skb() 1393 if (hlen + min(datalen, cork->gso_size) > cork->fragsize) { in udp_v6_send_skb() 1397 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb() 1410 if (datalen > cork->gso_size) { in udp_v6_send_skb() 1411 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb() 1414 cork->gso_size); in udp_v6_send_skb() 1462 err = udp_v6_send_skb(skb, &inet_sk(sk)->cork.fl.u.ip6, in udp_v6_push_pending_frames() 1463 &inet_sk(sk)->cork in udp_v6_push_pending_frames() 1370 udp_v6_send_skb(struct sk_buff * skb,struct flowi6 * fl6,struct inet_cork * cork) udp_v6_send_skb() argument 1485 struct inet_cork_full cork; udpv6_sendmsg() local [all...] |
| H A D | raw.c | 533 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames() 534 opt = inet_sk(sk)->cork.base6.opt; in rawv6_push_pending_frames()
|
| H A D | tcp_ipv6.c | 159 fl6 = &inet_sk(sk)->cork.fl.u.ip6; in tcp_v6_connect() 366 struct flowi6 *fl6 = &inet_sk(sk)->cork.fl.u.ip6; in inet6_csk_update_pmtu() 1435 newinet->cork.fl.u.ip6 = fl6;
|
| H A D | datagram.c | 89 fl6 = &inet_sk(sk)->cork.fl.u.ip6; in ip6_datagram_dst_update()
|
| /linux/include/linux/ |
| H A D | skmsg.h | 91 struct sk_msg *cork; member 500 if (psock->cork) { in sk_psock_get() 501 sk_msg_free(psock->sk, psock->cork); in sk_psock_get() 502 kfree(psock->cork); in sk_psock_get() 503 psock->cork = NULL; in sk_psock_get()
|
| /linux/include/net/ |
| H A D | ip.h | 239 struct inet_cork *cork); 248 struct inet_cork *cork, unsigned int flags); 254 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
|
| /linux/net/sctp/ |
| H A D | outqueue.c | 198 q->cork = 0; in sctp_outq_init() 315 if (!q->cork) 765 if (q->cork) in sctp_outq_uncork() 766 q->cork = 0; in sctp_outq_uncork()
|
| H A D | sm_sideeffect.c | 1493 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter() 1783 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter()
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | timestamping.rst | 310 在主机上,TCP 也可以通过 Nagle、cork、autocork、分段和 GSO 打破简单的 1:1
|
| /linux/net/mptcp/ |
| H A D | sockopt.c | 666 msk->cork = !!val; in __mptcp_setsockopt_sol_tcp_cork() 1431 return mptcp_put_int_option(msk, optval, optlen, msk->cork); in mptcp_getsockopt_sol_tcp() 1593 __tcp_sock_set_cork(ssk, !!msk->cork); in sync_socket_options()
|
| H A D | protocol.h | 343 cork:1, 329 cork:1, global() member
|
| /linux/include/net/sctp/ |
| H A D | structs.h | 1105 char cork; member 1124 q->cork = 1; in sctp_outq_cork()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_worker.c | 2070 int uncork, cork; in wait_for_work() 2139 cork = nc ? nc->tcp_cork : 0; in wait_for_work() 2143 if (cork) in wait_for_work() 2071 int uncork, cork; wait_for_work() local
|
| /linux/net/dccp/ |
| H A D | output.c | |
| H A D | ipv4.c | |
| /linux/net/l2tp/ |
| H A D | l2tp_core.c | 1329 ret = l2tp_xmit_queue(tunnel, skb, &inet->cork.fl); in l2tp_xmit_skb()
|