commit | 4c0911566dec7755d15cb89239fb2db4447f7a62 | [log] [tgz] |
---|---|---|
author | Eric W. Biederman <ebiederm@xmission.com> | Fri Jul 10 18:13:58 2015 -0500 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Jul 15 17:51:43 2015 +0200 |
tree | 73aab52ccf78e2b1592c335b69bed499aea6fa93 | |
parent | 70aa996601335ca3069190ebcdae8870828086a8 [diff] |
netfilter: Simply the tests for enabling and disabling the ingress queue hook Replace an overcomplicated switch statement with a simple if statement. This also removes the ingress queue enable outside of nf_hook_mutex as the protection provided by the mutex is not necessary and the code is clearer having both of the static key increments together. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>