aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot
ModeNameSize
-rw-r--r--bridge_domain.robot11245logstatsplain
-rw-r--r--counters.robot3512logstatsplain
-rw-r--r--default.robot8820logstatsplain
-rw-r--r--dhcp_client.robot6454logstatsplain
-rw-r--r--dhcp_proxy.robot7131logstatsplain
-rw-r--r--double_qemu_setup.robot4818logstatsplain
-rw-r--r--gre.robot8610logstatsplain
d---------honeycomb714logstatsplain
-rw-r--r--interfaces.robot1636logstatsplain
-rw-r--r--ipsec.robot12230logstatsplain
-rw-r--r--ipv4.robot8851logstatsplain
-rw-r--r--ipv6.robot10917logstatsplain
-rw-r--r--l2_traffic.robot6980logstatsplain
-rw-r--r--l2_xconnect.robot1033logstatsplain
d---------lisp178logstatsplain
-rw-r--r--map.robot14923logstatsplain
-rw-r--r--performance.robot72943logstatsplain
-rw-r--r--policer.robot5150logstatsplain
-rw-r--r--qemu.robot3104logstatsplain
-rw-r--r--tagging.robot9843logstatsplain
d---------telemetry77logstatsplain
-rw-r--r--testing_path.robot16031logstatsplain
-rw-r--r--traffic.robot19650logstatsplain
d---------vat44logstatsplain
-rw-r--r--vrf.robot3380logstatsplain
-rw-r--r--vxlan.robot4727logstatsplain
span class="o">->global_flow_pool, f); return 0; } int vnet_flow_enable (vnet_main_t * vnm, u32 flow_index, u32 hw_if_index) { vnet_flow_t *f = vnet_get_flow (flow_index); vnet_hw_interface_t *hi; vnet_device_class_t *dev_class; uword private_data; int rv; if (!vnet_hw_interface_is_valid (vnm, hw_if_index)) return VNET_FLOW_ERROR_NO_SUCH_INTERFACE; /* don't enable flow twice */ if (hash_get (f->private_data, hw_if_index) != 0) return VNET_FLOW_ERROR_ALREADY_DONE; hi = vnet_get_hw_interface (vnm, hw_if_index); dev_class = vnet_get_device_class (vnm, hi->dev_class_index); if (dev_class->flow_ops_function == 0) return VNET_FLOW_ERROR_NOT_SUPPORTED; if (f->actions & VNET_FLOW_ACTION_REDIRECT_TO_NODE) { vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); f->redirect_device_input_next_index = vlib_node_add_next (vnm->vlib_main, hw->input_node_index, f->redirect_node_index); } rv = dev_class->flow_ops_function (vnm, VNET_FLOW_DEV_OP_ADD_FLOW, hi->dev_instance, flow_index, &private_data); if (rv) return rv; hash_set (f->private_data, hw_if_index, private_data); return 0; } int vnet_flow_disable (vnet_main_t * vnm, u32 flow_index, u32 hw_if_index) { vnet_flow_t *f = vnet_get_flow (flow_index); vnet_hw_interface_t *hi; vnet_device_class_t *dev_class; uword *p; int rv; if (!vnet_hw_interface_is_valid (vnm, hw_if_index)) return VNET_FLOW_ERROR_NO_SUCH_INTERFACE; /* don't disable if not enabled */ if ((p = hash_get (f->private_data, hw_if_index)) == 0) return VNET_FLOW_ERROR_ALREADY_DONE; hi = vnet_get_hw_interface (vnm, hw_if_index); dev_class = vnet_get_device_class (vnm, hi->dev_class_index); rv = dev_class->flow_ops_function (vnm, VNET_FLOW_DEV_OP_DEL_FLOW, hi->dev_instance, flow_index, p); if (rv) return rv; hash_unset (f->private_data, hw_if_index); return 0; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */