From 7d98a12f29d5b9696df98b8af2f128614a4f0360 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 19 Jul 2018 20:42:08 +0200 Subject: Remove unused argument to vlib_feature_next Change-Id: Ieb8b53977fc8484c19780941e232ee072b667de3 Signed-off-by: Damjan Marion --- src/plugins/nat/out2in.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'src/plugins/nat/out2in.c') diff --git a/src/plugins/nat/out2in.c b/src/plugins/nat/out2in.c index ecfabc9c07a..26fc23454ae 100755 --- a/src/plugins/nat/out2in.c +++ b/src/plugins/nat/out2in.c @@ -786,8 +786,7 @@ snat_out2in_node_fn (vlib_main_t * vm, && (udp0->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b0)->sw_if_index[VLIB_RX], &next0, b0); + vnet_feature_next (&next0, b0); goto trace0; } @@ -938,8 +937,7 @@ snat_out2in_node_fn (vlib_main_t * vm, && (udp1->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b1)->sw_if_index[VLIB_RX], &next1, b1); + vnet_feature_next (&next1, b1); goto trace1; } @@ -1126,8 +1124,7 @@ snat_out2in_node_fn (vlib_main_t * vm, && (udp0->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b0)->sw_if_index[VLIB_RX], &next0, b0); + vnet_feature_next (&next0, b0); goto trace00; } @@ -1352,9 +1349,7 @@ nat44_out2in_reass_node_fn (vlib_main_t * vm, && (udp0->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b0)->sw_if_index[VLIB_RX], - &next0, b0); + vnet_feature_next (&next0, b0); goto trace0; } @@ -2182,8 +2177,7 @@ nat44_ed_out2in_node_fn_inline (vlib_main_t * vm, && (udp0->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b0)->sw_if_index[VLIB_RX], &next0, b0); + vnet_feature_next (&next0, b0); goto trace00; } @@ -2386,8 +2380,7 @@ nat44_ed_out2in_node_fn_inline (vlib_main_t * vm, && (udp1->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b1)->sw_if_index[VLIB_RX], &next1, b1); + vnet_feature_next (&next1, b1); goto trace01; } @@ -2622,8 +2615,7 @@ nat44_ed_out2in_node_fn_inline (vlib_main_t * vm, && (udp0->dst_port == clib_host_to_net_u16(UDP_DST_PORT_dhcp_to_client)))) { - vnet_feature_next - (vnet_buffer (b0)->sw_if_index[VLIB_RX], &next0, b0); + vnet_feature_next (&next0, b0); goto trace0; } @@ -3700,7 +3692,7 @@ snat_out2in_fast_node_fn (vlib_main_t * vm, sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_RX]; rx_fib_index0 = ip4_fib_table_get_index_for_sw_if_index(sw_if_index0); - vnet_feature_next (sw_if_index0, &next0, b0); + vnet_feature_next (&next0, b0); if (PREDICT_FALSE(ip0->ttl == 1)) { -- cgit 1.2.3-korg