lb: Fix generating illegal key in per-port vip 46/28346/1
authorYasuhiro Nakamura <yanakamu@yahoo-corp.jp>
Mon, 17 Feb 2020 04:03:38 +0000 (13:03 +0900)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 13 Aug 2020 08:12:25 +0000 (08:12 +0000)
commitc285f384ff25a7249e51ac91374ad8945923fcb6
treefd8b7da3791d3dda4f2eb061434dc4981d7176fe
parent5a9769c159a8bd7163035c6e12abe87668674ff3
lb: Fix generating illegal key in per-port vip

VIP prefix index becomes always 0 when adding a VIP which is already registered different port, causing LB config crash.
This change assigns the same VIP prefix index to the same VIP.

Ticket: https://jira.fd.io/browse/VPP-1834
Type: fix

Signed-off-by: Yasuhiro Nakamura <yanakamu@yahoo-corp.jp>
Change-Id: Ib63b3e58db9bd85714d68cd1292aadd0c8580da8
(cherry picked from commit 551775eaaa9c162c73e15690e4d7580935e9a70a)
src/plugins/lb/lb.c