diff options
author | Neale Ranns <nranns@cisco.com> | 2019-05-13 03:30:03 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-05-13 03:30:03 -0700 |
commit | c1a02fcd9294fa46a6bd458cad7b7e14f0769548 (patch) | |
tree | 7da46838efd547684c687d89e4d4dcabdf48ff6e /src | |
parent | 72d8758fdc2266b9f4cd53063da2d23f0855c1df (diff) |
remove dead code in rewrite.c
Change-Id: Ib34ca76fcc5e85cb3cc646ffc7be208b8e757cba
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/adj/rewrite.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/vnet/adj/rewrite.c b/src/vnet/adj/rewrite.c index 95671b06930..cf3cf416202 100644 --- a/src/vnet/adj/rewrite.c +++ b/src/vnet/adj/rewrite.c @@ -126,32 +126,6 @@ vnet_rewrite_for_sw_interface (vnet_main_t * vnm, } void -vnet_rewrite_for_tunnel (vnet_main_t * vnm, - u32 tx_sw_if_index, - u32 rewrite_node_index, - u32 post_rewrite_node_index, - vnet_rewrite_header_t * rw, - u8 * rewrite_data, u32 rewrite_length) -{ - ip_adjacency_t *adj = 0; - /* - * Installed into vnet_buffer(b)->sw_if_index[VLIB_TX] e.g. - * by ip4_rewrite_inline. If the post-rewrite node injects into - * ipX-forward, this will be interpreted as a FIB number. - */ - rw->sw_if_index = tx_sw_if_index; - rw->next_index = vlib_node_add_next (vnm->vlib_main, rewrite_node_index, - post_rewrite_node_index); - /* we can't know at this point */ - rw->max_l3_packet_bytes = (u16) ~ 0; - - ASSERT (rewrite_length < sizeof (adj->rewrite_data)); - /* Leave room for ethernet + VLAN tag */ - vnet_rewrite_set_data_internal (rw, sizeof (adj->rewrite_data), - rewrite_data, rewrite_length); -} - -void serialize_vnet_rewrite (serialize_main_t * m, va_list * va) { vnet_rewrite_header_t *rw = va_arg (*va, vnet_rewrite_header_t *); |