#ifndef _SOCK_REUSEPORT_H
#define _SOCK_REUSEPORT_H

#include <linux/filter.h>
#include <linux/skbuff.h>
#include <linux/types.h>
#include <net/sock.h>

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 */
t</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='472ff5be61f9593ee2d3ebbd716768e14de4659d'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/soc/intel/boards/haswell.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/soc/intel/boards/haswell.c?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/intel/boards/haswell.c?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/soc/intel/boards/haswell.c?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/soc/intel/boards/haswell.c'>
<input type='hidden' name='id' value='472ff5be61f9593ee2d3ebbd716768e14de4659d'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/intel?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>intel</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/intel/boards?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>boards</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/intel/boards/haswell.c?id=472ff5be61f9593ee2d3ebbd716768e14de4659d'>haswell.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/soc/intel/boards/haswell.c?id=472ff5be61f9593ee2d3ebbd716768e14de4659d&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>