diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2011-03-01 02:36:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-01 12:35:03 -0800 |
commit | 1c32c5ad6fac8cee1a77449f5abf211e911ff830 (patch) | |
tree | 6a7384abb34068adb298beb1967b11201d52ed48 /include/net/udplite.h | |
parent | 1470ddf7f8cecf776921e5ccee72e3d2b3d60cbc (diff) |
inet: Add ip_make_skb and ip_finish_skb
This patch adds the helper ip_make_skb which is like ip_append_data
and ip_push_pending_frames all rolled into one, except that it does
not send the skb produced. The sending part is carried out by
ip_send_skb, which the transport protocol can call after it has
tweaked the skb.
It is meant to be called in cases where corking is not used should
have a one-to-one correspondence to sendmsg.
This patch also adds the helper ip_finish_skb which is meant to
be replace ip_push_pending_frames when corking is required.
Previously the protocol stack would peek at the socket write
queue and add its header to the first packet. With ip_finish_skb,
the protocol stack can directly operate on the final skb instead,
just like the non-corking case with ip_make_skb.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udplite.h')
0 files changed, 0 insertions, 0 deletions