Hi Dave, I found quite a few places using this mechanism:
* In the input ACL support for PBR, there is an action to switch FIB table and the code uses this mechanism to specify which ones to use: *** src/vnet/ip/ip_input_acl.c: ip_inacl_inline[290] vnet_buffer (b0)->sw_if_index[VLIB_TX] = e0->metadata; ip_inacl_inline[348] vnet_buffer (b0)->sw_if_index[VLIB_TX] = * Ping support: *** src/vnet/ip/ping.c: send_ip6_ping[283] vnet_buffer (p0)->sw_if_index[VLIB_TX] = fib_index; send_ip6_ping[291] vnet_buffer (p0)->sw_if_index[VLIB_TX] = send_ip4_ping[410] vnet_buffer (p0)->sw_if_index[VLIB_TX] = fib_index; send_ip4_ping[418] vnet_buffer (p0)->sw_if_index[VLIB_TX] = * DHCP proxy: *** src/vnet/dhcp/dhcp4_proxy_node.c: dhcp_proxy_to_server_input[209] vnet_buffer(b0)->sw_if_index[VLIB_TX] = dhcp_proxy_to_client_input[644] vnet_buffer (b0)->sw_if_index[VLIB_TX] = sw_if_index; *** src/vnet/dhcp/dhcp6_proxy_node.c: dhcpv6_proxy_to_server_input[241] vnet_buffer(b0)->sw_if_index[VLIB_TX] = server_fib_idx; dhcpv6_proxy_to_client_input[683] vnet_buffer (b0)->sw_if_index[VLIB_TX] = original_sw_if_index * ICMP6 *** src/vnet/ip/icmp6.c: ip6_icmp_echo_request[356] vnet_buffer (p0)->sw_if_index[VLIB_TX] = ip6_icmp_echo_request[365] vnet_buffer (p0)->sw_if_index[VLIB_TX] = fib_index0; ip6_icmp_echo_request[380] vnet_buffer (p1)->sw_if_index[VLIB_TX] = ip6_icmp_echo_request[389] vnet_buffer (p1)->sw_if_index[VLIB_TX] = fib_index1; ip6_icmp_echo_request[456] vnet_buffer (p0)->sw_if_index[VLIB_TX] = ip6_icmp_echo_request[464] vnet_buffer (p0)->sw_if_index[VLIB_TX] = fib_index0; * VXLAN-GPE *** src/vnet/vxlan-gpe/decap.c: vxlan_gpe_input[332] vnet_buffer(b0)->sw_if_index[VLIB_TX] = t0->decap_fib_index; vxlan_gpe_input[415] vnet_buffer(b1)->sw_if_index[VLIB_TX] = t1->decap_fib_index; vxlan_gpe_input[435] vnet_buffer(b1)->sw_if_index[VLIB_TX] = t1->decap_fib_index; vxlan_gpe_input[576] vnet_buffer(b0)->sw_if_index[VLIB_TX] = t0->decap_fib_index; Is there another way to specify FIB table index to use if this mechanism is removed? Regards, John From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Dave Barach (dbarach) Sent: Wednesday, October 18, 2017 8:51 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] vnet_buffer(b)-> sw_if_index[VLIB_TX] => fib index in ip[46]_lookup Folks, Is anyone is actually using the "vnet_buffer(b)->sw_if_index[VLIB_TX] => [fib_index | ~0]" method to select the lookup fib index in ip[46]_lookup? If not, I would like to remove the corresponding code... Thanks... Dave
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev