Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: static mappings in flow hash
[vpp.git]
/
src
/
plugins
/
nat
/
nat44-ei
/
nat44_ei.h
diff --git
a/src/plugins/nat/nat44-ei/nat44_ei.h
b/src/plugins/nat/nat44-ei/nat44_ei.h
index
29c92e9
..
2e95b14
100644
(file)
--- a/
src/plugins/nat/nat44-ei/nat44_ei.h
+++ b/
src/plugins/nat/nat44-ei/nat44_ei.h
@@
-32,9
+32,11
@@
#include <vppinfra/dlist.h>
#include <vppinfra/error.h>
#include <vppinfra/bihash_8_8.h>
#include <vppinfra/dlist.h>
#include <vppinfra/error.h>
#include <vppinfra/bihash_8_8.h>
+#include <vppinfra/hash.h>
#include <nat/lib/lib.h>
#include <nat/lib/inlines.h>
#include <nat/lib/lib.h>
#include <nat/lib/inlines.h>
+#include <nat/lib/nat_proto.h>
/* default number of worker handoff frame queue elements */
#define NAT_FQ_NELTS_DEFAULT 64
/* default number of worker handoff frame queue elements */
#define NAT_FQ_NELTS_DEFAULT 64
@@
-71,7
+73,7
@@
typedef struct
#define _(N, i, n, s) \
u32 busy_##n##_ports; \
u32 *busy_##n##_ports_per_thread; \
#define _(N, i, n, s) \
u32 busy_##n##_ports; \
u32 *busy_##n##_ports_per_thread; \
- u32 busy_##n##_port_refcounts[
65535
];
+ u32 busy_##n##_port_refcounts[
0xffff + 1
];
foreach_nat_protocol
#undef _
} nat44_ei_address_t;
foreach_nat_protocol
#undef _
} nat44_ei_address_t;
@@
-160,7
+162,7
@@
typedef struct
typedef struct
{
typedef struct
{
- /* prefered pool address */
+ /* prefer
r
ed pool address */
ip4_address_t pool_addr;
/* local IP address */
ip4_address_t local_addr;
ip4_address_t pool_addr;
/* local IP address */
ip4_address_t local_addr;
@@
-304,7
+306,7
@@
typedef struct
typedef struct
{
u32 cached_sw_if_index;
typedef struct
{
u32 cached_sw_if_index;
- u
32 cached
_ip4_address;
+ u
word *cached_presence_by
_ip4_address;
} nat44_ei_runtime_t;
typedef struct
} nat44_ei_runtime_t;
typedef struct