diff options
author | Takeru Hayasaka <hayatake396@gmail.com> | 2023-01-17 04:45:58 +0900 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2023-03-31 06:04:42 +0000 |
commit | b23c6f4f29b53afa6be2735b30b08fcb115f20cc (patch) | |
tree | 59cca6452dca4b17fbce112ca8f4e5b3004565b7 /src/vnet/ip/ip_api.c | |
parent | 55686e1c59f8bcf399f5ff58b3ca1030a415009c (diff) |
ip: support flow-hash gtpv1teid
support with GTPv1 TEID added to the flow hash.
This can able to ECMP to PGW and parallelization.
Type: feature
Change-Id: I6f758579027caf6123831ef2db7afe17e424a6eb
Signed-off-by: Takeru Hayasaka <hayatake396@gmail.com>
Diffstat (limited to 'src/vnet/ip/ip_api.c')
-rw-r--r-- | src/vnet/ip/ip_api.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index e03b0103391..667ea4c45b4 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -1298,6 +1298,22 @@ vl_api_set_ip_flow_hash_v2_t_handler (vl_api_set_ip_flow_hash_v2_t *mp) } static void +vl_api_set_ip_flow_hash_v3_t_handler (vl_api_set_ip_flow_hash_v3_t *mp) +{ + vl_api_set_ip_flow_hash_v3_reply_t *rmp; + ip_address_family_t af; + int rv; + + rv = ip_address_family_decode (mp->af, &af); + + if (!rv) + rv = ip_flow_hash_set (af, htonl (mp->table_id), + htonl (mp->flow_hash_config)); + + REPLY_MACRO (VL_API_SET_IP_FLOW_HASH_V3_REPLY); +} + +static void vl_api_set_ip_flow_hash_router_id_t_handler ( vl_api_set_ip_flow_hash_router_id_t *mp) { |