From 370dde3e7efd3d1478373950171c6f5b8ebfe023 Mon Sep 17 00:00:00 2001 From: Pierre Pfister Date: Thu, 13 Oct 2016 13:36:18 +0100 Subject: 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 --- plugins/lb-plugin/lb/lb.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/lb-plugin/lb/lb.h') 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, -- cgit 1.2.3-korg