diff options
| author | Jeremy Sowden <jeremy@azazel.net> | 2020-01-01 16:41:32 +0300 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-01-16 17:51:14 +0300 |
| commit | 4a7faaf4add3108522512c16c9ee08fb2ad4525e (patch) | |
| tree | 665470f16d1aed6807b3ddb5fefa2449ca387259 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 6bc8038035267d12df2bf78a8e1a5f07069fabb8 (diff) | |
| download | linux-4a7faaf4add3108522512c16c9ee08fb2ad4525e.tar.xz | |
netfilter: nft_bitwise: correct uapi header comment.
The comment documenting how bitwise expressions work includes a table
which summarizes the mask and xor arguments combined to express the
supported boolean operations. However, the row for OR:
mask xor
0 x
is incorrect.
dreg = (sreg & 0) ^ x
is not equivalent to:
dreg = sreg | x
What the code actually does is:
dreg = (sreg & ~x) ^ x
Update the documentation to match.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
