session udp: fix cl hash computation 85/43585/2
authorFlorin Coras <[email protected]>
Mon, 18 Aug 2025 08:40:51 +0000 (04:40 -0400)
committerFlorin Coras <[email protected]>
Mon, 18 Aug 2025 10:53:07 +0000 (10:53 +0000)
Type: fix

Change-Id: I5da034ad860a4f7cf7578f7026566a27e1a43960
Signed-off-by: Florin Coras <[email protected]>
src/vnet/session/application.c

index c27e58e..ee66d75 100644 (file)
@@ -1068,7 +1068,7 @@ app_listener_select_wrk_cl_session (session_t *ls, session_dgram_hdr_t *hdr)
   if (al->workers[0] != 1)
     {
       u32 hash = app_listener_cl_flow_hash (hdr);
-      hash %= vec_len (al->workers) * sizeof (uword);
+      hash %= vec_len (al->workers);
       wrk_map_index = clib_bitmap_next_set (al->workers, hash);
       if (wrk_map_index == ~0)
        wrk_map_index = clib_bitmap_first_set (al->workers);