diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/net/inet_sock.h | |
parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date: Thu Nov 5 23:04:11 2015 +0200
drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r-- | include/net/inet_sock.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index 47eb67b08abd..2134e6d815bc 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h | |||
@@ -210,6 +210,18 @@ struct inet_sock { | |||
210 | #define IP_CMSG_ORIGDSTADDR BIT(6) | 210 | #define IP_CMSG_ORIGDSTADDR BIT(6) |
211 | #define IP_CMSG_CHECKSUM BIT(7) | 211 | #define IP_CMSG_CHECKSUM BIT(7) |
212 | 212 | ||
213 | /* SYNACK messages might be attached to request sockets. | ||
214 | * Some places want to reach the listener in this case. | ||
215 | */ | ||
216 | static inline struct sock *skb_to_full_sk(const struct sk_buff *skb) | ||
217 | { | ||
218 | struct sock *sk = skb->sk; | ||
219 | |||
220 | if (sk && sk->sk_state == TCP_NEW_SYN_RECV) | ||
221 | sk = inet_reqsk(sk)->rsk_listener; | ||
222 | return sk; | ||
223 | } | ||
224 | |||
213 | static inline struct inet_sock *inet_sk(const struct sock *sk) | 225 | static inline struct inet_sock *inet_sk(const struct sock *sk) |
214 | { | 226 | { |
215 | return (struct inet_sock *)sk; | 227 | return (struct inet_sock *)sk; |
@@ -245,7 +257,8 @@ static inline unsigned int __inet_ehashfn(const __be32 laddr, | |||
245 | } | 257 | } |
246 | 258 | ||
247 | struct request_sock *inet_reqsk_alloc(const struct request_sock_ops *ops, | 259 | struct request_sock *inet_reqsk_alloc(const struct request_sock_ops *ops, |
248 | struct sock *sk_listener); | 260 | struct sock *sk_listener, |
261 | bool attach_listener); | ||
249 | 262 | ||
250 | static inline __u8 inet_sk_flowi_flags(const struct sock *sk) | 263 | static inline __u8 inet_sk_flowi_flags(const struct sock *sk) |
251 | { | 264 | { |