vlib: switch when frames are different 05/9705/4
authorEyal Bari <ebari@cisco.com>
Mon, 4 Dec 2017 11:57:45 +0000 (13:57 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 4 Dec 2017 17:13:38 +0000 (17:13 +0000)
commit2e292c6f6489015460e3fee8ec567791c897108e
tree610d115f8cd34c4c193955e52142b1ef793c402f
parentc99b4cd1c3aae9ca3bda0595a5cce4ea5e6ba84f
vlib: switch when frames are different

[ebari] no need to switch if next2, next3 are equal to next_index
[dbarach] change fix_speculation calculaton to a branch-free xor/or tree

Change-Id: I0131dc4499218363d5b0ce8f6440ce74e0b22bb9
Signed-off-by: Eyal Bari <ebari@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/buffer_node.h