diff options
| author | 2015-09-18 14:32:56 -0500 | |
|---|---|---|
| committer | 2015-09-18 21:57:51 +0200 | |
| commit | 082a758f042e1c1eb241bfc2308ddc2b4ef6840d (patch) | |
| tree | 47f20ac57ed1c46f3f0e7f6cb29195d94dcaf689 /include/linux/netfilter | |
| parent | inet netfilter: Remove hook from ip6t_do_table, arp_do_table, ipt_do_table (diff) | |
| download | linux-dev-082a758f042e1c1eb241bfc2308ddc2b4ef6840d.tar.xz linux-dev-082a758f042e1c1eb241bfc2308ddc2b4ef6840d.zip | |
inet netfilter: Prefer state->hook to ops->hooknum
The values of nf_hook_state.hook and nf_hook_ops.hooknum must be the
same by definition.
We are more likely to access the fields in nf_hook_state over the
fields in nf_hook_ops so with a little luck this results in
fewer cache line misses, and slightly more consistent code.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter')
0 files changed, 0 insertions, 0 deletions
