LoadBal: Use intrinsics and use protocol number 94/3394/3
authorPierre Pfister <ppfister@cisco.com>
Thu, 13 Oct 2016 12:36:18 +0000 (13:36 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 18 Oct 2016 08:17:27 +0000 (08:17 +0000)
commit370dde3e7efd3d1478373950171c6f5b8ebfe023
treecf0fc07c9a06ef57cf52f9048b4aaccda3a7efb7
parentebb9a6a1280ae89b8b1555197dd2f7c3f40a4a6e
LoadBal: Use intrinsics and use protocol number

This patch modifies the load balancer hash table such that
it uses vector operations.

It also fixes the hash computation logic such that the port
is only looked-up for TCP and UDP.
Some additional work is still needed for other types of traffic.

Change-Id: I788b4c782a9923d3792f3985f0580c0c81b3aad3
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
plugins/lb-plugin/lb/lb.h
plugins/lb-plugin/lb/lbhash.h
plugins/lb-plugin/lb/node.c