diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2018-01-23 19:17:23 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2018-02-02 02:20:46 +0000 |
commit | 647f609a11e2afb91a5216ca99d0705a3e1212a7 (patch) | |
tree | 149ab0443d42a8d8a7620c8bce917ec87edf1ae7 /src/plugins/lb/lb.api | |
parent | 91389ac2c28ae10f2b7f766e4dfe7a7fd96dc5e0 (diff) |
Add L3DSR feature in LB plugin
L3DSR is used to overcome Layer 2 limitations
of Direct Server Return Load Balancing.
It maps VIP to DSCP bits, and reuse TOS bits to transfer it
to server, and then server will get VIP from DSCP-to-VIP mapping.
Please refer to https://www.nanog.org/meetings/nanog51/presentations/Monday/NANOG51.Talk45.nanog51-Schaumann.pdf
Change-Id: I403ffeadfb04ed0265086eb2dc41f2e17f8f34cb
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins/lb/lb.api')
-rw-r--r-- | src/plugins/lb/lb.api | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/lb/lb.api b/src/plugins/lb/lb.api index f5036edf79d..101cee88ded 100644 --- a/src/plugins/lb/lb.api +++ b/src/plugins/lb/lb.api @@ -23,9 +23,10 @@ autoreply define lb_conf /** \brief Add a virtual address (or prefix) @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param ip_prefix - IP address (IPv4 in lower order 32 bits). - @param prefix_length - IP prefix length (96 + 'IPv4 prefix length' for IPv4). - @param is_gre4 - Encap is ip4 GRE (ip6 GRE otherwise). + @param ip_prefix - IP address (IPv4 in lower order 32 bits). + @param prefix_length - IP prefix length (96 + 'IPv4 prefix length' for IPv4). + @param encap - Encap is ip4 GRE(0) or ip6 GRE(1) or L3DSR(2). + @param dscp - DSCP bit corresponding to VIP(applicable in L3DSR mode only). @param new_flows_table_length - Size of the new connections flow table used for this VIP (must be power of 2). @param is_del - The VIP should be removed. @@ -35,7 +36,8 @@ autoreply define lb_add_del_vip { u32 context; u8 ip_prefix[16]; u8 prefix_length; - u8 is_gre4; + u8 encap; + u8 dscp; u32 new_flows_table_length; u8 is_del; }; @@ -43,8 +45,8 @@ autoreply define lb_add_del_vip { /** \brief Add an application server for a given VIP @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param vip_ip_prefix - VIP IP address (IPv4 in lower order 32 bits). - @param vip_ip_prefix - VIP IP prefix length (96 + 'IPv4 prefix length' for IPv4). + @param vip_ip_prefix - VIP IP address (IPv4 in lower order 32 bits). + @param vip_ip_prefix - VIP IP prefix length (96 + 'IPv4 prefix length' for IPv4). @param as_address - The application server address (IPv4 in lower order 32 bits). @param is_del - The AS should be removed. */ |