Lines Matching refs:cork
1390 static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, in ip6_setup_cork() argument
1401 cork->base.dst = &rt->dst; in ip6_setup_cork()
1448 cork->base.fragsize = mtu; in ip6_setup_cork()
1449 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1450 cork->base.tx_flags = 0; in ip6_setup_cork()
1451 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1452 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
1455 cork->base.flags |= IPCORK_ALLFRAG; in ip6_setup_cork()
1456 cork->base.length = 0; in ip6_setup_cork()
1458 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
1474 struct inet_cork *cork = &cork_full->base; in __ip6_append_data() local
1486 struct rt6_info *rt = (struct rt6_info *)cork->dst; in __ip6_append_data()
1499 paged = !!cork->gso_size; in __ip6_append_data()
1500 mtu = cork->gso_size ? IP6_MAX_MTU : cork->fragsize; in __ip6_append_data()
1503 if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP && in __ip6_append_data()
1531 if (cork->length + length > mtu - headersize && ipc6->dontfrag && in __ip6_append_data()
1545 if (cork->length + length > maxnonfragsize - headersize) { in __ip6_append_data()
1558 (!(flags & MSG_MORE) || cork->gso_size) && in __ip6_append_data()
1610 cork->length += length; in __ip6_append_data()
1616 copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; in __ip6_append_data()
1647 …if (datalen > (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - fraghe… in __ip6_append_data()
1746 skb_shinfo(skb)->tx_flags = cork->tx_flags; in __ip6_append_data()
1747 cork->tx_flags = 0; in __ip6_append_data()
1829 cork->length -= length; in __ip6_append_data()
1854 err = ip6_setup_cork(sk, &inet->cork, &np->cork, in ip6_append_data()
1859 inet->cork.fl.u.ip6 = *fl6; in ip6_append_data()
1867 return __ip6_append_data(sk, &sk->sk_write_queue, &inet->cork, in ip6_append_data()
1868 &np->cork, sk_page_frag(sk), getfrag, in ip6_append_data()
1873 static void ip6_cork_steal_dst(struct sk_buff *skb, struct inet_cork_full *cork) in ip6_cork_steal_dst() argument
1875 struct dst_entry *dst = cork->base.dst; in ip6_cork_steal_dst()
1877 cork->base.dst = NULL; in ip6_cork_steal_dst()
1878 cork->base.flags &= ~IPCORK_ALLFRAG; in ip6_cork_steal_dst()
1882 static void ip6_cork_release(struct inet_cork_full *cork, in ip6_cork_release() argument
1896 if (cork->base.dst) { in ip6_cork_release()
1897 dst_release(cork->base.dst); in ip6_cork_release()
1898 cork->base.dst = NULL; in ip6_cork_release()
1899 cork->base.flags &= ~IPCORK_ALLFRAG; in ip6_cork_release()
1905 struct inet_cork_full *cork, in __ip6_make_skb() argument
1915 struct rt6_info *rt = (struct rt6_info *)cork->base.dst; in __ip6_make_skb()
1916 struct flowi6 *fl6 = &cork->fl.u.ip6; in __ip6_make_skb()
1961 skb->mark = cork->base.mark; in __ip6_make_skb()
1962 skb->tstamp = cork->base.transmit_time; in __ip6_make_skb()
1964 ip6_cork_steal_dst(skb, cork); in __ip6_make_skb()
1973 ip6_cork_release(cork, v6_cork); in __ip6_make_skb()
2010 struct inet_cork_full *cork, in __ip6_flush_pending_frames() argument
2022 ip6_cork_release(cork, v6_cork); in __ip6_flush_pending_frames()
2028 &inet_sk(sk)->cork, &inet6_sk(sk)->cork); in ip6_flush_pending_frames()
2037 unsigned int flags, struct inet_cork_full *cork) in ip6_make_skb() argument
2051 cork->base.flags = 0; in ip6_make_skb()
2052 cork->base.addr = 0; in ip6_make_skb()
2053 cork->base.opt = NULL; in ip6_make_skb()
2055 err = ip6_setup_cork(sk, cork, &v6_cork, ipc6, rt); in ip6_make_skb()
2057 ip6_cork_release(cork, &v6_cork); in ip6_make_skb()
2063 err = __ip6_append_data(sk, &queue, cork, &v6_cork, in ip6_make_skb()
2068 __ip6_flush_pending_frames(sk, &queue, cork, &v6_cork); in ip6_make_skb()
2072 return __ip6_make_skb(sk, &queue, cork, &v6_cork); in ip6_make_skb()