diff options
author | 2014-02-16 14:01:58 +0100 | |
---|---|---|
committer | 2014-02-17 11:21:17 +0100 | |
commit | f627ed91d85ed7a189ec8b3b045a0d831e1655e2 (patch) | |
tree | 9469b066c11c8cc0c734aa947bd5c8cde362202f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netfilter: nf_tables: fix nf_trace always-on with XT_TRACE=n (diff) | |
download | linux-dev-f627ed91d85ed7a189ec8b3b045a0d831e1655e2.tar.xz linux-dev-f627ed91d85ed7a189ec8b3b045a0d831e1655e2.zip |
netfilter: nf_tables: check if payload length is a power of 2
Add a check if payload's length is a power of 2 when selecting ops.
The fast ops were meant for well aligned loads, also this fixes a
small bug when using a length of 3 with some offsets which causes
only 1 byte to be loaded because the fast ops are chosen.
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions