diff options
author | Damjan Marion <damarion@cisco.com> | 2021-04-21 23:44:40 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-04-22 05:54:48 +0000 |
commit | d06e2eb1a1d570367b4076772ac66bc95e3a7bd8 (patch) | |
tree | 12d988fc5b6f78ca59750938ce1452f2441d149d /src/vnet | |
parent | db36fda74ece376cd31ca374841e7ca17c06a34c (diff) |
ip: remove unnecesary inlining in ip4-rewrite node
Type: refactor
Change-Id: Ifbaf42ef88a7e0f1715b7b5e342af790e3b6acd9
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ip/ip4_forward.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index 9e8d164b51f..ddf97d48a15 100644 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -2070,12 +2070,10 @@ ip4_ttl_and_checksum_check (vlib_buffer_t * b, ip4_header_t * ip, u16 * next, (vnet_buffer2 (b)->oflags & VNET_BUFFER_OFFLOAD_F_IP_CKSUM)); } - always_inline uword -ip4_rewrite_inline_with_gso (vlib_main_t * vm, - vlib_node_runtime_t * node, - vlib_frame_t * frame, - int do_counters, int is_midchain, int is_mcast) +ip4_rewrite_inline (vlib_main_t *vm, vlib_node_runtime_t *node, + vlib_frame_t *frame, int do_counters, int is_midchain, + int is_mcast) { ip_lookup_main_t *lm = &ip4_main.lookup_main; u32 *from = vlib_frame_vector_args (frame); @@ -2536,17 +2534,6 @@ ip4_rewrite_inline_with_gso (vlib_main_t * vm, return frame->n_vectors; } -always_inline uword -ip4_rewrite_inline (vlib_main_t * vm, - vlib_node_runtime_t * node, - vlib_frame_t * frame, - int do_counters, int is_midchain, int is_mcast) -{ - return ip4_rewrite_inline_with_gso (vm, node, frame, do_counters, - is_midchain, is_mcast); -} - - /** @brief IPv4 rewrite node. @node ip4-rewrite |