#ifndef _SOCK_REUSEPORT_H #define _SOCK_REUSEPORT_H #include #include #include #include struct sock_reuseport { struct rcu_head rcu; u16 max_socks; /* length of socks */ u16 num_socks; /* elements in socks */ struct bpf_prog __rcu *prog; /* optional BPF sock selector */ struct sock *socks[0]; /* array of sock pointers */ }; extern int reuseport_alloc(struct sock *sk); extern int reuseport_add_sock(struct sock *sk, struct sock *sk2); extern void reuseport_detach_sock(struct sock *sk); extern struct sock *reuseport_select_sock(struct sock *sk, u32 hash, struct sk_buff *skb, int hdr_len); extern struct bpf_prog *reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog); #endif /* _SOCK_REUSEPORT_H */ linux/net-next.git/'>net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2016-11-28 11:23:35 -0800
committerJiri Kosina <jkosina@suse.cz>2016-11-29 15:17:34 +0100
commit6d290391be9233349345d49f4539a87f8cb31c30 (patch)
treebe039f8e7c529d33356bcdd02e7a8aeeb949cb93 /net/smc/Kconfig
parente5b56aa7906d6995007ffe11ecc181dd876dabd3 (diff)
HID: intel-ish-hid: Fix potential race condition
Although unlikely but it is possible that when a connect or disconnect request is issued to the firmware, before the response comes, user terminates the client session. In this case when the response is arrived there is no matching client instance in the list of currently active clients. In this case, don't issue call to wake up a waiting client. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/smc/Kconfig')