summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2014-06-06 16:32:37 +0200
committerDavid S. Miller <davem@davemloft.net>2014-06-11 07:30:58 +0200
commit6cc55e096f1f2a8585cf8dc9049862f2376f66d4 (patch)
tree3ead1ba34000e454889258a30a37eb3ba1d69b62 /include/net
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff)
downloadlinux-6cc55e096f1f2a8585cf8dc9049862f2376f66d4.tar.xz
linux-6cc55e096f1f2a8585cf8dc9049862f2376f66d4.zip
tcp: add gfp parameter to tcp_fragment
tcp_fragment can be called from process context (from tso_fragment). Add a new gfp parameter to allow it to preserve atomic memory if possible. Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Reviewed-by: Christoph Paasch <christoph.paasch@uclouvain.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index e80abe4486cb..7286db80e8b8 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -535,7 +535,7 @@ void tcp_retransmit_timer(struct sock *sk);
void tcp_xmit_retransmit_queue(struct sock *);
void tcp_simple_retransmit(struct sock *);
int tcp_trim_head(struct sock *, struct sk_buff *, u32);
-int tcp_fragment(struct sock *, struct sk_buff *, u32, unsigned int);
+int tcp_fragment(struct sock *, struct sk_buff *, u32, unsigned int, gfp_t);
void tcp_send_probe0(struct sock *);
void tcp_send_partial(struct sock *);