commit | 8283737065b2dab480cd10e00e6f8abbcb62b5b0 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Thu Oct 12 10:34:09 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Oct 14 11:13:28 2017 -0700 |
tree | 907b0964d517b5b97c150fd83440fdfec8a5346d | |
parent | bc8c80a8c978d24b2746dc7d9a8cef65ae82be3c [diff] |
nfp: bpf: add missing return in jne_imm optimization We optimize comparisons to immediate 0 as if (reg.lo | reg.hi). The early return statement was missing, however, which means we would generate two comparisons - optimized one followed by a normal 2x 32 bit compare. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>