commit | 4987eaccd2d1535eaa72d3bbe2b8bfc8267ba965 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Wed Dec 19 22:13:08 2018 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Dec 20 17:28:29 2018 +0100 |
tree | c6bf58bba8b67edb2e6d80671348a54890966eef | |
parent | 6e774845b321e729966fed7de4aa8ea59c2c3b2e [diff] |
nfp: bpf: optimize codegen for JSET with a constant The top word of the constant can only have bits set if sign extension set it to all-1, therefore we don't really have to mask the top half of the register. We can just OR it into the result as is. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>