lb: add source ip based sticky load balancing 68/37268/7
authorNobuhiro MIKI <nmiki@yahoo-corp.jp>
Wed, 28 Sep 2022 06:53:17 +0000 (15:53 +0900)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 18 Jan 2023 10:53:23 +0000 (10:53 +0000)
commit613e6dc0bf928def5d337312d522e1a15df87b00
tree04e592643029774fadcbfc8f8e82df778b867df9
parent893a0c3130e1d868c939db6dcde258da1277cf41
lb: add source ip based sticky load balancing

This patch adds source ip based sticky session, which is already
implemented in many hardware LBs and software LBs. Note that sticky
sessions may be reset if the hash is recalculated as ASs are added
or deleted.

Since this feature is unrelated to the other existing options, the
lb_add_del_vip API version has been upgraded to v2 and a new option
"src_ip_sticky" has been added.

Type: feature
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
Change-Id: I3eb3680a28defbc701f28c873933ec2fb54544ab
src/plugins/lb/api.c
src/plugins/lb/cli.c
src/plugins/lb/lb.api
src/plugins/lb/lb.c
src/plugins/lb/lb.h
src/plugins/lb/lb_test.c
src/plugins/lb/node.c
test/test_lb.py