Home
last modified time | relevance | path

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

/net/ipv4/
Dip_output.c965 struct inet_cork *cork, in __ip_append_data() argument
976 struct ip_options *opt = cork->opt; in __ip_append_data()
985 struct rtable *rt = (struct rtable *)cork->dst; in __ip_append_data()
993 mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; in __ip_append_data()
994 paged = !!cork->gso_size; in __ip_append_data()
996 if (cork->tx_flags & SKBTX_ANY_TSTAMP && in __ip_append_data()
1006 if (cork->length + length > maxnonfragsize - fragheaderlen) { in __ip_append_data()
1019 (!(flags & MSG_MORE) || cork->gso_size) && in __ip_append_data()
1037 cork->length += length; in __ip_append_data()
1159 skb_shinfo(skb)->tx_flags = cork->tx_flags; in __ip_append_data()
[all …]
Dtcp_bpf.c315 bool cork = false, enospc = sk_msg_full(msg); in tcp_bpf_send_verdict() local
336 if (!psock->cork) { in tcp_bpf_send_verdict()
337 psock->cork = kzalloc(sizeof(*psock->cork), in tcp_bpf_send_verdict()
339 if (!psock->cork) in tcp_bpf_send_verdict()
342 memcpy(psock->cork, msg, sizeof(*msg)); in tcp_bpf_send_verdict()
369 if (psock->cork) { in tcp_bpf_send_verdict()
370 cork = true; in tcp_bpf_send_verdict()
371 psock->cork = NULL; in tcp_bpf_send_verdict()
387 if (!cork) in tcp_bpf_send_verdict()
390 if (cork) { in tcp_bpf_send_verdict()
[all …]
Dudp.c825 struct inet_cork *cork) in udp_send_skb() argument
846 if (cork->gso_size) { in udp_send_skb()
850 if (hlen + cork->gso_size > cork->fragsize) { in udp_send_skb()
854 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_send_skb()
868 if (datalen > cork->gso_size) { in udp_send_skb()
869 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb()
872 cork->gso_size); in udp_send_skb()
921 struct flowi4 *fl4 = &inet->cork.fl.u.ip4; in udp_push_pending_frames()
929 err = udp_send_skb(skb, fl4, &inet->cork.base); in udp_push_pending_frames()
1008 fl4 = &inet->cork.fl.u.ip4; in udp_sendmsg()
[all …]
Ddatagram.c47 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
Dinet_connection_sock.c637 fl4 = &newinet->cork.fl.u.ip4; in inet_csk_route_child_sock()
1152 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
1160 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
Dsyncookies.c404 inet_sk(ret)->cork.fl.u.ip4 = fl4; in cookie_v4_check()
Daf_inet.c1208 fl4 = &inet->cork.fl.u.ip4; in inet_sk_reselect_saddr()
1260 fl4 = &inet->cork.fl.u.ip4; in inet_sk_rebuild_header()
Dtcp_ipv4.c229 fl4 = &inet->cork.fl.u.ip4; in tcp_v4_connect()
Dtcp_output.c1179 err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); in __tcp_transmit_skb()
/net/ipv6/
Dip6_output.c1315 static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, in ip6_setup_cork() argument
1361 cork->base.dst = &rt->dst; in ip6_setup_cork()
1362 cork->fl.u.ip6 = *fl6; in ip6_setup_cork()
1375 cork->base.fragsize = mtu; in ip6_setup_cork()
1376 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1377 cork->base.tx_flags = 0; in ip6_setup_cork()
1378 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1379 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
1382 cork->base.flags |= IPCORK_ALLFRAG; in ip6_setup_cork()
1383 cork->base.length = 0; in ip6_setup_cork()
[all …]
Dudp.c1120 struct inet_cork *cork) in udp_v6_send_skb() argument
1140 if (cork->gso_size) { in udp_v6_send_skb()
1144 if (hlen + cork->gso_size > cork->fragsize) { in udp_v6_send_skb()
1148 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb()
1162 if (datalen > cork->gso_size) { in udp_v6_send_skb()
1163 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb()
1166 cork->gso_size); in udp_v6_send_skb()
1217 fl6 = inet_sk(sk)->cork.fl.u.ip6; in udp_v6_push_pending_frames()
1223 err = udp_v6_send_skb(skb, &fl6, &inet_sk(sk)->cork.base); in udp_v6_push_pending_frames()
1481 struct inet_cork_full cork; in udpv6_sendmsg() local
[all …]
Draw.c559 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames()
560 opt = inet6_sk(sk)->cork.opt; in rawv6_push_pending_frames()
/net/l2tp/
Dl2tp_ip.c468 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
508 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
Dl2tp_core.c1108 fl = &inet->cork.fl; in l2tp_xmit_skb()
/net/sctp/
Doutqueue.c312 if (!q->cork) in sctp_outq_tail()
755 if (q->cork) in sctp_outq_uncork()
756 q->cork = 0; in sctp_outq_uncork()
Dsm_sideeffect.c1470 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter()
1764 if (!asoc->outqueue.cork) { in sctp_cmd_interpreter()
/net/dccp/
Doutput.c138 err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); in dccp_transmit_skb()
Dipv4.c70 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect()