From e4031131ccddd7c4eb683b36f1a97a65dcff008a Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 26 Oct 2020 13:00:06 +0000 Subject: misc: Break the big IP header files to improve compile time Type: refactor Signed-off-by: Neale Ranns Change-Id: Id1801519638a9b97175847d7ed58824fb83433d6 --- src/vnet/ip/lookup.h | 46 ++++------------------------------------------ 1 file changed, 4 insertions(+), 42 deletions(-) (limited to 'src/vnet/ip/lookup.h') diff --git a/src/vnet/ip/lookup.h b/src/vnet/ip/lookup.h index 49ed0bbd3ef..48ba468d7c2 100644 --- a/src/vnet/ip/lookup.h +++ b/src/vnet/ip/lookup.h @@ -48,40 +48,16 @@ #ifndef included_ip_lookup_h #define included_ip_lookup_h -#include +//#include +#include #include #include #include +#include #include #include #include -#include - -/** Flow hash configuration */ -#define IP_FLOW_HASH_SRC_ADDR (1<<0) -#define IP_FLOW_HASH_DST_ADDR (1<<1) -#define IP_FLOW_HASH_PROTO (1<<2) -#define IP_FLOW_HASH_SRC_PORT (1<<3) -#define IP_FLOW_HASH_DST_PORT (1<<4) -#define IP_FLOW_HASH_REVERSE_SRC_DST (1<<5) -#define IP_FLOW_HASH_SYMMETRIC (1<<6) - -/** Default: 5-tuple without the "reverse" bit */ -#define IP_FLOW_HASH_DEFAULT (0x1F) - -#define foreach_flow_hash_bit \ -_(src, IP_FLOW_HASH_SRC_ADDR) \ -_(dst, IP_FLOW_HASH_DST_ADDR) \ -_(sport, IP_FLOW_HASH_SRC_PORT) \ -_(dport, IP_FLOW_HASH_DST_PORT) \ -_(proto, IP_FLOW_HASH_PROTO) \ -_(reverse, IP_FLOW_HASH_REVERSE_SRC_DST) \ -_(symmetric, IP_FLOW_HASH_SYMMETRIC) - -/** - * A flow hash configuration is a mask of the flow hash options - */ -typedef u32 flow_hash_config_t; +///#include /* An all zeros address */ extern const ip46_address_t zero_addr; @@ -202,20 +178,6 @@ ip_lookup_set_buffer_fib_index (u32 * fib_index_by_sw_if_index, /* *INDENT-ON* */ } -typedef struct _vnet_ip_container_proxy_args -{ - fib_prefix_t prefix; - u32 sw_if_index; - u8 is_add; -} vnet_ip_container_proxy_args_t; - -clib_error_t *vnet_ip_container_proxy_add_del (vnet_ip_container_proxy_args_t - * args); - -typedef int (*ip_container_proxy_cb_t) (const fib_prefix_t * pfx, - u32 sw_if_index, void *ctx); -void ip_container_proxy_walk (ip_container_proxy_cb_t cb, void *ctx); - void ip_lookup_init (ip_lookup_main_t * lm, u32 ip_lookup_node_index); #endif /* included_ip_lookup_h */ -- cgit 1.2.3-korg