cork 2081 drivers/block/drbd/drbd_worker.c int uncork, cork; cork 2150 drivers/block/drbd/drbd_worker.c cork = nc ? nc->tcp_cork : 0; cork 2154 drivers/block/drbd/drbd_worker.c if (cork) cork 300 include/linux/ipv6.h struct inet6_cork cork; cork 90 include/linux/skmsg.h struct sk_msg *cork; cork 336 include/linux/skmsg.h if (psock->cork) { cork 337 include/linux/skmsg.h sk_msg_free(psock->sk, psock->cork); cork 338 include/linux/skmsg.h kfree(psock->cork); cork 339 include/linux/skmsg.h psock->cork = NULL; cork 238 include/net/inet_sock.h struct inet_cork_full cork; cork 223 include/net/ip.h struct inet_cork *cork); cork 232 include/net/ip.h struct inet_cork *cork, unsigned int flags); cork 242 include/net/ip.h return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); cork 1002 include/net/ipv6.h struct inet_cork_full *cork, cork 1010 include/net/ipv6.h struct inet_cork_full *cork); cork 1014 include/net/ipv6.h return __ip6_make_skb(sk, &sk->sk_write_queue, &inet_sk(sk)->cork, cork 1015 include/net/ipv6.h &inet6_sk(sk)->cork); cork 1095 include/net/sctp/structs.h char cork; cork 1116 include/net/sctp/structs.h q->cork = 1; cork 70 net/dccp/ipv4.c fl4 = &inet->cork.fl.u.ip4; cork 138 net/dccp/output.c err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); cork 1204 net/ipv4/af_inet.c fl4 = &inet->cork.fl.u.ip4; cork 1256 net/ipv4/af_inet.c fl4 = &inet->cork.fl.u.ip4; cork 47 net/ipv4/datagram.c fl4 = &inet->cork.fl.u.ip4; cork 614 net/ipv4/inet_connection_sock.c fl4 = &newinet->cork.fl.u.ip4; cork 1110 net/ipv4/inet_connection_sock.c dst = inet_csk_rebuild_route(sk, &inet->cork.fl); cork 1118 net/ipv4/inet_connection_sock.c dst = inet_csk_rebuild_route(sk, &inet->cork.fl); cork 956 net/ipv4/ip_output.c struct inet_cork *cork, cork 967 net/ipv4/ip_output.c struct ip_options *opt = cork->opt; cork 976 net/ipv4/ip_output.c struct rtable *rt = (struct rtable *)cork->dst; cork 984 net/ipv4/ip_output.c mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; cork 985 net/ipv4/ip_output.c paged = !!cork->gso_size; cork 987 net/ipv4/ip_output.c if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP && cork 997 net/ipv4/ip_output.c if (cork->length + length > maxnonfragsize - fragheaderlen) { cork 1010 net/ipv4/ip_output.c (!(flags & MSG_MORE) || cork->gso_size) && cork 1028 net/ipv4/ip_output.c cork->length += length; cork 1146 net/ipv4/ip_output.c skb_shinfo(skb)->tx_flags = cork->tx_flags; cork 1147 net/ipv4/ip_output.c cork->tx_flags = 0; cork 1229 net/ipv4/ip_output.c cork->length -= length; cork 1235 net/ipv4/ip_output.c static int ip_setup_cork(struct sock *sk, struct inet_cork *cork, cork 1250 net/ipv4/ip_output.c if (!cork->opt) { cork 1251 net/ipv4/ip_output.c cork->opt = kmalloc(sizeof(struct ip_options) + 40, cork 1253 net/ipv4/ip_output.c if (unlikely(!cork->opt)) cork 1256 net/ipv4/ip_output.c memcpy(cork->opt, &opt->opt, sizeof(struct ip_options) + opt->opt.optlen); cork 1257 net/ipv4/ip_output.c cork->flags |= IPCORK_OPT; cork 1258 net/ipv4/ip_output.c cork->addr = ipc->addr; cork 1261 net/ipv4/ip_output.c cork->fragsize = ip_sk_use_pmtu(sk) ? cork 1264 net/ipv4/ip_output.c if (!inetdev_valid_mtu(cork->fragsize)) cork 1267 net/ipv4/ip_output.c cork->gso_size = ipc->gso_size; cork 1269 net/ipv4/ip_output.c cork->dst = &rt->dst; cork 1273 net/ipv4/ip_output.c cork->length = 0; cork 1274 net/ipv4/ip_output.c cork->ttl = ipc->ttl; cork 1275 net/ipv4/ip_output.c cork->tos = ipc->tos; cork 1276 net/ipv4/ip_output.c cork->mark = ipc->sockc.mark; cork 1277 net/ipv4/ip_output.c cork->priority = ipc->priority; cork 1278 net/ipv4/ip_output.c cork->transmit_time = ipc->sockc.transmit_time; cork 1279 net/ipv4/ip_output.c cork->tx_flags = 0; cork 1280 net/ipv4/ip_output.c sock_tx_timestamp(sk, ipc->sockc.tsflags, &cork->tx_flags); cork 1310 net/ipv4/ip_output.c err = ip_setup_cork(sk, &inet->cork.base, ipc, rtp); cork 1317 net/ipv4/ip_output.c return __ip_append_data(sk, fl4, &sk->sk_write_queue, &inet->cork.base, cork 1329 net/ipv4/ip_output.c struct inet_cork *cork; cork 1345 net/ipv4/ip_output.c cork = &inet->cork.base; cork 1346 net/ipv4/ip_output.c rt = (struct rtable *)cork->dst; cork 1347 net/ipv4/ip_output.c if (cork->flags & IPCORK_OPT) cork 1348 net/ipv4/ip_output.c opt = cork->opt; cork 1354 net/ipv4/ip_output.c mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; cork 1360 net/ipv4/ip_output.c if (cork->length + size > maxnonfragsize - fragheaderlen) { cork 1370 net/ipv4/ip_output.c cork->length += size; cork 1447 net/ipv4/ip_output.c cork->length -= size; cork 1452 net/ipv4/ip_output.c static void ip_cork_release(struct inet_cork *cork) cork 1454 net/ipv4/ip_output.c cork->flags &= ~IPCORK_OPT; cork 1455 net/ipv4/ip_output.c kfree(cork->opt); cork 1456 net/ipv4/ip_output.c cork->opt = NULL; cork 1457 net/ipv4/ip_output.c dst_release(cork->dst); cork 1458 net/ipv4/ip_output.c cork->dst = NULL; cork 1468 net/ipv4/ip_output.c struct inet_cork *cork) cork 1475 net/ipv4/ip_output.c struct rtable *rt = (struct rtable *)cork->dst; cork 1514 net/ipv4/ip_output.c if (cork->flags & IPCORK_OPT) cork 1515 net/ipv4/ip_output.c opt = cork->opt; cork 1517 net/ipv4/ip_output.c if (cork->ttl != 0) cork 1518 net/ipv4/ip_output.c ttl = cork->ttl; cork 1527 net/ipv4/ip_output.c iph->tos = (cork->tos != -1) ? cork->tos : inet->tos; cork 1536 net/ipv4/ip_output.c ip_options_build(skb, opt, cork->addr, rt, 0); cork 1539 net/ipv4/ip_output.c skb->priority = (cork->tos != -1) ? cork->priority: sk->sk_priority; cork 1540 net/ipv4/ip_output.c skb->mark = cork->mark; cork 1541 net/ipv4/ip_output.c skb->tstamp = cork->transmit_time; cork 1546 net/ipv4/ip_output.c cork->dst = NULL; cork 1553 net/ipv4/ip_output.c ip_cork_release(cork); cork 1590 net/ipv4/ip_output.c struct inet_cork *cork) cork 1597 net/ipv4/ip_output.c ip_cork_release(cork); cork 1602 net/ipv4/ip_output.c __ip_flush_pending_frames(sk, &sk->sk_write_queue, &inet_sk(sk)->cork.base); cork 1611 net/ipv4/ip_output.c struct inet_cork *cork, unsigned int flags) cork 1621 net/ipv4/ip_output.c cork->flags = 0; cork 1622 net/ipv4/ip_output.c cork->addr = 0; cork 1623 net/ipv4/ip_output.c cork->opt = NULL; cork 1624 net/ipv4/ip_output.c err = ip_setup_cork(sk, cork, ipc, rtp); cork 1628 net/ipv4/ip_output.c err = __ip_append_data(sk, fl4, &queue, cork, cork 1632 net/ipv4/ip_output.c __ip_flush_pending_frames(sk, &queue, cork); cork 1636 net/ipv4/ip_output.c return __ip_make_skb(sk, fl4, &queue, cork); cork 403 net/ipv4/syncookies.c inet_sk(ret)->cork.fl.u.ip4 = fl4; cork 306 net/ipv4/tcp_bpf.c bool cork = false, enospc = sk_msg_full(msg); cork 326 net/ipv4/tcp_bpf.c if (!psock->cork) { cork 327 net/ipv4/tcp_bpf.c psock->cork = kzalloc(sizeof(*psock->cork), cork 329 net/ipv4/tcp_bpf.c if (!psock->cork) cork 332 net/ipv4/tcp_bpf.c memcpy(psock->cork, msg, sizeof(*msg)); cork 352 net/ipv4/tcp_bpf.c if (psock->cork) { cork 353 net/ipv4/tcp_bpf.c cork = true; cork 354 net/ipv4/tcp_bpf.c psock->cork = NULL; cork 363 net/ipv4/tcp_bpf.c if (!cork) cork 366 net/ipv4/tcp_bpf.c if (cork) { cork 427 net/ipv4/tcp_bpf.c if (psock->cork) { cork 428 net/ipv4/tcp_bpf.c msg_tx = psock->cork; cork 472 net/ipv4/tcp_bpf.c if (msg_tx && msg_tx != psock->cork) cork 498 net/ipv4/tcp_bpf.c if (psock->cork) { cork 499 net/ipv4/tcp_bpf.c msg = psock->cork; cork 229 net/ipv4/tcp_ipv4.c fl4 = &inet->cork.fl.u.ip4; cork 1177 net/ipv4/tcp_output.c err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); cork 815 net/ipv4/udp.c struct inet_cork *cork) cork 836 net/ipv4/udp.c if (cork->gso_size) { cork 840 net/ipv4/udp.c if (hlen + cork->gso_size > cork->fragsize) { cork 844 net/ipv4/udp.c if (skb->len > cork->gso_size * UDP_MAX_SEGMENTS) { cork 858 net/ipv4/udp.c if (datalen > cork->gso_size) { cork 859 net/ipv4/udp.c skb_shinfo(skb)->gso_size = cork->gso_size; cork 862 net/ipv4/udp.c cork->gso_size); cork 911 net/ipv4/udp.c struct flowi4 *fl4 = &inet->cork.fl.u.ip4; cork 919 net/ipv4/udp.c err = udp_send_skb(skb, fl4, &inet->cork.base); cork 998 net/ipv4/udp.c fl4 = &inet->cork.fl.u.ip4; cork 1171 net/ipv4/udp.c struct inet_cork cork; cork 1175 net/ipv4/udp.c &cork, msg->msg_flags); cork 1178 net/ipv4/udp.c err = udp_send_skb(skb, fl4, &cork); cork 1195 net/ipv4/udp.c fl4 = &inet->cork.fl.u.ip4; cork 1276 net/ipv4/udp.c ret = ip_append_page(sk, &inet->cork.fl.u.ip4, cork 1235 net/ipv6/ip6_output.c static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, cork 1281 net/ipv6/ip6_output.c cork->base.dst = &rt->dst; cork 1282 net/ipv6/ip6_output.c cork->fl.u.ip6 = *fl6; cork 1297 net/ipv6/ip6_output.c cork->base.fragsize = mtu; cork 1298 net/ipv6/ip6_output.c cork->base.gso_size = ipc6->gso_size; cork 1299 net/ipv6/ip6_output.c cork->base.tx_flags = 0; cork 1300 net/ipv6/ip6_output.c cork->base.mark = ipc6->sockc.mark; cork 1301 net/ipv6/ip6_output.c sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); cork 1304 net/ipv6/ip6_output.c cork->base.flags |= IPCORK_ALLFRAG; cork 1305 net/ipv6/ip6_output.c cork->base.length = 0; cork 1307 net/ipv6/ip6_output.c cork->base.transmit_time = ipc6->sockc.transmit_time; cork 1315 net/ipv6/ip6_output.c struct inet_cork *cork, cork 1333 net/ipv6/ip6_output.c struct rt6_info *rt = (struct rt6_info *)cork->dst; cork 1346 net/ipv6/ip6_output.c paged = !!cork->gso_size; cork 1347 net/ipv6/ip6_output.c mtu = cork->gso_size ? IP6_MAX_MTU : cork->fragsize; cork 1350 net/ipv6/ip6_output.c if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP && cork 1373 net/ipv6/ip6_output.c if (cork->length + length > mtu - headersize && ipc6->dontfrag && cork 1386 net/ipv6/ip6_output.c if (cork->length + length > maxnonfragsize - headersize) { cork 1399 net/ipv6/ip6_output.c (!(flags & MSG_MORE) || cork->gso_size) && cork 1433 net/ipv6/ip6_output.c cork->length += length; cork 1439 net/ipv6/ip6_output.c copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; cork 1470 net/ipv6/ip6_output.c if (datalen > (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - fragheaderlen) cork 1567 net/ipv6/ip6_output.c skb_shinfo(skb)->tx_flags = cork->tx_flags; cork 1568 net/ipv6/ip6_output.c cork->tx_flags = 0; cork 1650 net/ipv6/ip6_output.c cork->length -= length; cork 1674 net/ipv6/ip6_output.c err = ip6_setup_cork(sk, &inet->cork, &np->cork, cork 1683 net/ipv6/ip6_output.c fl6 = &inet->cork.fl.u.ip6; cork 1687 net/ipv6/ip6_output.c return __ip6_append_data(sk, fl6, &sk->sk_write_queue, &inet->cork.base, cork 1688 net/ipv6/ip6_output.c &np->cork, sk_page_frag(sk), getfrag, cork 1693 net/ipv6/ip6_output.c static void ip6_cork_release(struct inet_cork_full *cork, cork 1705 net/ipv6/ip6_output.c if (cork->base.dst) { cork 1706 net/ipv6/ip6_output.c dst_release(cork->base.dst); cork 1707 net/ipv6/ip6_output.c cork->base.dst = NULL; cork 1708 net/ipv6/ip6_output.c cork->base.flags &= ~IPCORK_ALLFRAG; cork 1710 net/ipv6/ip6_output.c memset(&cork->fl, 0, sizeof(cork->fl)); cork 1715 net/ipv6/ip6_output.c struct inet_cork_full *cork, cork 1725 net/ipv6/ip6_output.c struct rt6_info *rt = (struct rt6_info *)cork->base.dst; cork 1726 net/ipv6/ip6_output.c struct flowi6 *fl6 = &cork->fl.u.ip6; cork 1771 net/ipv6/ip6_output.c skb->mark = cork->base.mark; cork 1773 net/ipv6/ip6_output.c skb->tstamp = cork->base.transmit_time; cork 1784 net/ipv6/ip6_output.c ip6_cork_release(cork, v6_cork); cork 1821 net/ipv6/ip6_output.c struct inet_cork_full *cork, cork 1833 net/ipv6/ip6_output.c ip6_cork_release(cork, v6_cork); cork 1839 net/ipv6/ip6_output.c &inet_sk(sk)->cork, &inet6_sk(sk)->cork); cork 1849 net/ipv6/ip6_output.c struct inet_cork_full *cork) cork 1861 net/ipv6/ip6_output.c cork->base.flags = 0; cork 1862 net/ipv6/ip6_output.c cork->base.addr = 0; cork 1863 net/ipv6/ip6_output.c cork->base.opt = NULL; cork 1864 net/ipv6/ip6_output.c cork->base.dst = NULL; cork 1866 net/ipv6/ip6_output.c err = ip6_setup_cork(sk, cork, &v6_cork, ipc6, rt, fl6); cork 1868 net/ipv6/ip6_output.c ip6_cork_release(cork, &v6_cork); cork 1874 net/ipv6/ip6_output.c err = __ip6_append_data(sk, fl6, &queue, &cork->base, &v6_cork, cork 1879 net/ipv6/ip6_output.c __ip6_flush_pending_frames(sk, &queue, cork, &v6_cork); cork 1883 net/ipv6/ip6_output.c return __ip6_make_skb(sk, &queue, cork, &v6_cork); cork 558 net/ipv6/raw.c total_len = inet_sk(sk)->cork.base.length; cork 1103 net/ipv6/udp.c struct inet_cork *cork) cork 1123 net/ipv6/udp.c if (cork->gso_size) { cork 1127 net/ipv6/udp.c if (hlen + cork->gso_size > cork->fragsize) { cork 1131 net/ipv6/udp.c if (skb->len > cork->gso_size * UDP_MAX_SEGMENTS) { cork 1145 net/ipv6/udp.c if (datalen > cork->gso_size) { cork 1146 net/ipv6/udp.c skb_shinfo(skb)->gso_size = cork->gso_size; cork 1149 net/ipv6/udp.c cork->gso_size); cork 1200 net/ipv6/udp.c fl6 = inet_sk(sk)->cork.fl.u.ip6; cork 1206 net/ipv6/udp.c err = udp_v6_send_skb(skb, &fl6, &inet_sk(sk)->cork.base); cork 1462 net/ipv6/udp.c struct inet_cork_full cork; cork 1468 net/ipv6/udp.c msg->msg_flags, &cork); cork 1471 net/ipv6/udp.c err = udp_v6_send_skb(skb, &fl6, &cork.base); cork 1109 net/l2tp/l2tp_core.c fl = &inet->cork.fl; cork 468 net/l2tp/l2tp_ip.c fl4 = &inet->cork.fl.u.ip4; cork 508 net/l2tp/l2tp_ip.c rc = ip_queue_xmit(sk, skb, &inet->cork.fl); cork 311 net/sctp/outqueue.c if (!q->cork) cork 754 net/sctp/outqueue.c if (q->cork) cork 755 net/sctp/outqueue.c q->cork = 0; cork 1463 net/sctp/sm_sideeffect.c if (!asoc->outqueue.cork) { cork 1757 net/sctp/sm_sideeffect.c if (!asoc->outqueue.cork) {