diff options
author | 2016-10-13 13:36:18 +0100 | |
---|---|---|
committer | 2016-10-18 08:17:27 +0000 | |
commit | 370dde3e7efd3d1478373950171c6f5b8ebfe023 (patch) | |
tree | cf0fc07c9a06ef57cf52f9048b4aaccda3a7efb7 /plugins/lb-plugin/lb/lb.h | |
parent | ebb9a6a1280ae89b8b1555197dd2f7c3f40a4a6e (diff) |
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>
Diffstat (limited to 'plugins/lb-plugin/lb/lb.h')
-rw-r--r-- | plugins/lb-plugin/lb/lb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/lb-plugin/lb/lb.h b/plugins/lb-plugin/lb/lb.h index 09cfde3e378..882b9b30f7e 100644 --- a/plugins/lb-plugin/lb/lb.h +++ b/plugins/lb-plugin/lb/lb.h @@ -116,8 +116,10 @@ typedef struct { } lb_new_flow_entry_t; #define lb_foreach_vip_counter \ - _(TRACKED_SESSION, "tracked session", 0) \ - _(UNTRACKED_PACKET, "untracked packet", 1) + _(NEXT_PACKET, "packet from existing sessions", 0) \ + _(FIRST_PACKET, "first session packet", 1) \ + _(UNTRACKED_PACKET, "untracked packet", 2) \ + _(NO_SERVER, "no server configured", 3) typedef enum { #define _(a,b,c) LB_VIP_COUNTER_##a = c, |