diff options
author | Filip Varga <filipvarga89@gmail.com> | 2019-07-31 12:45:48 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-07-31 17:43:33 +0000 |
commit | e6e09a4acef2c38bc31e89c05bd1f40f1829debb (patch) | |
tree | 17047be4ac050426ee113677a24b73644f714047 /src/plugins/nat/nat_reass.c | |
parent | c343a17df5bba800ecd7cca92acdd2bd1f984ebf (diff) |
nat: elog rewrite for multi-worker support
Type: fix
Change-Id: I04f136a04bc022d223e4bcb5c59920bd1f1fd560
Signed-off-by: Filip Varga <filipvarga89@gmail.com>
Diffstat (limited to 'src/plugins/nat/nat_reass.c')
-rwxr-xr-x | src/plugins/nat/nat_reass.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/nat/nat_reass.c b/src/plugins/nat/nat_reass.c index 673acfa1d5a..b518c0cb916 100755 --- a/src/plugins/nat/nat_reass.c +++ b/src/plugins/nat/nat_reass.c @@ -232,7 +232,7 @@ nat_ip4_reass_create (ip4_address_t src, ip4_address_t dst, u16 frag_id, if (srm->ip4_reass_n >= srm->ip4_max_reass) { - nat_log_warn ("no free resassembly slot"); + nat_elog_warn ("no free resassembly slot"); goto unlock; } @@ -263,7 +263,7 @@ nat_ip4_reass_create (ip4_address_t src, ip4_address_t dst, u16 frag_id, reass->flags = 0; reass->classify_next = NAT_REASS_IP4_CLASSIFY_NONE; if (clib_bihash_add_del_16_8 (&srm->ip4_reass_hash, &kv, 1)) - nat_log_warn ("ip4_reass_hash add key failed"); + nat_elog_warn ("ip4_reass_hash add key failed"); unlock: clib_spinlock_unlock_if_init (&srm->ip4_reass_lock); @@ -326,7 +326,7 @@ nat_ip4_reass_find_or_create (ip4_address_t src, ip4_address_t dst, { clib_dlist_addhead (srm->ip4_reass_lru_list_pool, srm->ip4_reass_head_index, oldest_index); - nat_log_warn ("no free resassembly slot"); + nat_elog_warn ("no free resassembly slot"); reass = 0; goto unlock; } @@ -535,7 +535,7 @@ nat_ip6_reass_find_or_create (ip6_address_t src, ip6_address_t dst, { clib_dlist_addhead (srm->ip6_reass_lru_list_pool, srm->ip6_reass_head_index, oldest_index); - nat_log_warn ("no free resassembly slot"); + nat_elog_warn ("no free resassembly slot"); reass = 0; goto unlock; } |