From 33c45f56ab391ab13a42eb4ec2ac2b97b9fc546a Mon Sep 17 00:00:00 2001 From: Mohammed Hawari Date: Mon, 30 Nov 2020 13:50:24 +0100 Subject: fib: supporting inner flow hash on tunnels Change-Id: I53011e089bfecb08483792029b534b09b9e33a10 Type: improvement Signed-off-by: Mohammed Hawari --- src/vnet/tunnel/tunnel.h | 3 ++- src/vnet/tunnel/tunnel_types.api | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vnet/tunnel') diff --git a/src/vnet/tunnel/tunnel.h b/src/vnet/tunnel/tunnel.h index 6c97fc13ab4..de06b6002f5 100644 --- a/src/vnet/tunnel/tunnel.h +++ b/src/vnet/tunnel/tunnel.h @@ -43,7 +43,8 @@ extern uword unformat_tunnel_mode (unformat_input_t * input, va_list * args); _(ENCAP_SET_DF, "encap-set-df", 0x2) \ _(ENCAP_COPY_DSCP, "encap-copy-dscp", 0x4) \ _(ENCAP_COPY_ECN, "encap-copy-ecn", 0x8) \ - _(DECAP_COPY_ECN, "decap-copy-ecn", 0x10) + _(DECAP_COPY_ECN, "decap-copy-ecn", 0x10) \ + _(ENCAP_INNER_HASH, "encap-inner-hash", 0x20) typedef enum tunnel_encap_decap_flags_t_ { diff --git a/src/vnet/tunnel/tunnel_types.api b/src/vnet/tunnel/tunnel_types.api index 98354890016..d1934054d80 100644 --- a/src/vnet/tunnel/tunnel_types.api +++ b/src/vnet/tunnel/tunnel_types.api @@ -30,6 +30,8 @@ enum tunnel_encap_decap_flags : u8 TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN = 0x8, /** at decap, copy the ECN bit of the tunnel header into the payload */ TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN = 0x10, + /** at encap, compute flow hash on the inner packet for more entropy */ + TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH = 0x20 [backwards_compatible], }; /** -- cgit 1.2.3-korg