summaryrefslogtreecommitdiff
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorSrinivasarao P <spathi@codeaurora.org>2019-08-12 10:43:01 +0530
committerSrinivasarao P <spathi@codeaurora.org>2019-08-12 10:43:48 +0530
commit478556932db7a2e4dd19e4da619599fd3d5a56aa (patch)
tree0d87c384868f1f35ee8dfebbcf72722fd542edc9 /include/net/tcp.h
parent7b0c4ab61ef1dc4eaa00ee0d9b4c50ca0193ad75 (diff)
parent74c82193e89daaa486f49dc8a4f8ed38f0460159 (diff)
Merge android-4.4.189 (74c8219) into msm-4.4
* refs/heads/tmp-74c8219 Linux 4.4.189 x86/speculation/swapgs: Exclude ATOMs from speculation through SWAPGS x86/entry/64: Use JMP instead of JMPQ x86/speculation: Enable Spectre v1 swapgs mitigations x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations x86/entry/64: Fix context tracking state warning when load_gs_index fails x86: cpufeatures: Sort feature word 7 spi: bcm2835: Fix 3-wire mode if DMA is enabled block: blk_init_allocated_queue() set q->fq as NULL in the fail case compat_ioctl: pppoe: fix PPPOEIOCSFWD handling bnx2x: Disable multi-cos feature. net/mlx5: Use reversed order when unregister devices net: sched: Fix a possible null-pointer dereference in dequeue_func() tipc: compat: allow tipc commands without arguments net: fix ifindex collision during namespace removal net: bridge: delete local fdb on device init failure atm: iphase: Fix Spectre v1 vulnerability tcp: be more careful in tcp_fragment() HID: Add quirk for HP X1200 PIXART OEM mouse netfilter: nfnetlink_acct: validate NFACCT_QUOTA parameter arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG} arm64: cpufeature: Fix CTR_EL0 field definitions UPSTREAM: net-ipv6-ndisc: add support for RFC7710 RA Captive Portal Identifier Change-Id: I0bdf89783d0c83a3385d77f6b4c6f3d3b3fb0460 Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index bafb7e8737dc..12b6ddc4c078 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1544,6 +1544,23 @@ static inline void tcp_check_send_head(struct sock *sk, struct sk_buff *skb_unli
tcp_sk(sk)->highest_sack = NULL;
}
+static inline struct sk_buff *tcp_rtx_queue_head(const struct sock *sk)
+{
+ struct sk_buff *skb = tcp_write_queue_head(sk);
+
+ if (skb == tcp_send_head(sk))
+ skb = NULL;
+
+ return skb;
+}
+
+static inline struct sk_buff *tcp_rtx_queue_tail(const struct sock *sk)
+{
+ struct sk_buff *skb = tcp_send_head(sk);
+
+ return skb ? tcp_write_queue_prev(sk, skb) : tcp_write_queue_tail(sk);
+}
+
static inline void __tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb)
{
__skb_queue_tail(&sk->sk_write_queue, skb);