Searched refs:hw (Results 1 - 25 of 60) sorted by relevance

123

/vpp/src/vnet/
H A Dmisc.c77 vnet_hw_interface_t *hw; local
84 hw = vnet_get_hw_interface (vnm, hw_if_index);
87 vnm->local_interface_sw_if_index = hw->sw_if_index;
91 ip4_sw_interface_enable_disable (hw->sw_if_index, 1);
92 ip6_sw_interface_enable_disable (hw->sw_if_index, 1);
H A Dinterface.c74 /* Either sw or hw interface index. */
141 /* Send sw/hw interface state when non-zero. */
209 error = clib_error_return (0, "hw class %s AWOL?", class_name);
774 vnet_hw_interface_t *hw; local
785 pool_get (im->hw_interfaces, hw);
786 clib_memset (hw, 0, sizeof (*hw));
787 hw->trace_classify_table_index = ~0;
789 hw_index = hw - im->hw_interfaces;
790 hw
983 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
1257 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
1424 vnet_hw_interface_t *hw; local
[all...]
H A Dinterface_funcs.h74 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
75 vnet_sw_interface_t *sw = vnet_get_sw_interface (vnm, hw->sw_if_index);
294 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
295 return hw->hw_address;
301 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
302 return hw->flags;
308 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
309 return hw->max_packet_bytes;
348 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
349 return vlib_get_frame_to_node (vlib_get_main (), hw
356 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
364 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
[all...]
/vpp/src/vnet/devices/
H A Ddevices.c126 vnet_hw_interface_t *hw; local
132 hw = vnet_get_hw_interface (vnm, dq->hw_if_index);
133 vec_validate (hw->dq_runtime_index_by_queue, dq->queue_id);
134 hw->dq_runtime_index_by_queue[dq->queue_id] = dq - rt->devices_and_queues;
146 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
148 ASSERT (hw->input_node_index > 0);
167 rt = vlib_node_get_runtime_data (vm, hw->input_node_index);
171 dq->dev_instance = hw->dev_instance;
177 vec_validate (hw->input_node_thread_index_by_queue, queue_id);
178 vec_validate (hw
192 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
261 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
319 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
[all...]
H A Ddevices.h82 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
83 hw->input_node_index = node_index;
130 vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); local
131 ASSERT (queue_id < vec_len (hw->input_node_thread_index_by_queue));
132 return hw->input_node_thread_index_by_queue[queue_id];
140 vnet_hw_interface_t *hw; local
145 hw = vnet_get_hw_interface (vnm, hw_if_index);
148 rt = vlib_node_get_runtime_data (vm, hw->input_node_index);
149 idx = hw->dq_runtime_index_by_queue[queue_id];
154 vlib_node_set_interrupt_pending (vm, hw
[all...]
/vpp/src/plugins/cdp/
H A Dcdp_periodic.c32 add_device_name_tlv (vnet_hw_interface_t * hw, u8 ** t0p) argument
44 add_port_id_tlv (vnet_hw_interface_t * hw, u8 ** t0p) argument
49 t->l = htons (vec_len (hw->name) + sizeof (*t));
50 clib_memcpy (&t->v, hw->name, vec_len (hw->name));
55 add_version_tlv (vnet_hw_interface_t * hw, u8 ** t0p) argument
66 add_platform_tlv (vnet_hw_interface_t * hw, u8 ** t0p) argument
77 add_capability_tlv (vnet_hw_interface_t * hw, u8 ** t0p) argument
91 add_tlvs (cdp_main_t * cm, vnet_hw_interface_t * hw, u8 ** t0p) argument
93 add_device_name_tlv (hw, t0
108 vnet_hw_interface_t *hw; local
178 vnet_hw_interface_t *hw; local
237 vnet_hw_interface_t *hw; local
[all...]
/vpp/src/vnet/policer/
H A Dxlate.c122 // TODO check what can be provided by hw macro based on ASIC
298 SSE2_QOS_DEBUG_ERROR ("hw cir (%u bytes/tick) is greater than the "
307 SSE2_QOS_DEBUG_ERROR ("hw eir (%u bytes/tick) is greater than the "
401 sse2_qos_pol_hw_params_st * hw)
492 hw->rfc = IPE_RFC_RFC4115;
493 hw->allow_negative = 0;
508 hw->peak_rate_man = (u16) hi_mant;
511 hw->avg_rate_man = (u16) rnd_value;
515 hw->avg_rate_man = (u16) hi_mant;
518 hw
400 sse2_pol_convert_cfg_rates_to_hw(sse2_qos_pol_cfg_params_st * cfg, sse2_qos_pol_hw_params_st * hw) argument
702 sse2_pol_convert_cfg_burst_to_hw(sse2_qos_pol_cfg_params_st * cfg, sse2_qos_pol_hw_params_st * hw) argument
793 sse2_pol_convert_cfg_to_hw_params(sse2_qos_pol_cfg_params_st * cfg, sse2_qos_pol_hw_params_st * hw) argument
890 sse2_pol_compute_hw_params(sse2_qos_pol_cfg_params_st * cfg, sse2_qos_pol_hw_params_st * hw) argument
1055 x86_pol_compute_hw_params(sse2_qos_pol_cfg_params_st * cfg, policer_read_response_type_st * hw) argument
1304 sse2_pol_convert_hw_to_cfg_params(sse2_qos_pol_hw_params_st * hw, sse2_qos_pol_cfg_params_st * cfg) argument
[all...]
/vpp/src/vnet/lldp/
H A Dlldp_output.c46 lldp_add_chassis_id (const vnet_hw_interface_t * hw, u8 ** t0p) argument
54 clib_memcpy_fast (&t->id, hw->hw_address, addr_len);
62 lldp_add_port_id (const vnet_hw_interface_t * hw, u8 ** t0p) argument
69 const size_t name_len = vec_len (hw->name);
70 clib_memcpy_fast (&t->id, hw->name, name_len);
130 lldp_add_mgmt_addr (const lldp_intf_t * n, const vnet_hw_interface_t * hw, argument
145 hw->hw_address, /* address */
146 hw->hw_if_index, /* if index */
157 hw->hw_if_index, /* if index */
167 hw
183 lldp_add_tlvs(lldp_main_t * lm, vnet_hw_interface_t * hw, u8 ** t0p, int shutdown, lldp_intf_t * n) argument
203 vnet_hw_interface_t *hw; local
[all...]
/vpp/src/plugins/avf/
H A Dcli.c86 vnet_hw_interface_t *hw; local
112 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
113 if (hw == NULL || avf_device_class.index != hw->dev_class_index)
116 ad = pool_elt_at_index (am->devices, hw->dev_instance);
138 vnet_hw_interface_t *hw; local
171 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
172 if (hw == NULL || avf_device_class.index != hw->dev_class_index)
175 ad = pool_elt_at_index (am->devices, hw
[all...]
H A Davf_api.c70 vnet_hw_interface_t *hw; local
73 hw =
76 if (hw == NULL || avf_device_class.index != hw->dev_class_index)
82 ad = pool_elt_at_index (am->devices, hw->dev_instance);
/vpp/src/plugins/rdma/
H A Dcli.c63 vnet_hw_interface_t *hw; local
89 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
90 if (hw == NULL || rdma_device_class.index != hw->dev_class_index)
93 rd = pool_elt_at_index (rm->devices, hw->dev_instance);
115 vnet_hw_interface_t *hw; local
142 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
143 if (hw == NULL || rdma_device_class.index != hw->dev_class_index)
146 rd = pool_elt_at_index (rm->devices, hw
[all...]
H A Dapi.c84 vnet_hw_interface_t *hw; local
87 hw =
90 if (hw == NULL || rdma_device_class.index != hw->dev_class_index)
96 rd = pool_elt_at_index (rm->devices, hw->dev_instance);
/vpp/src/plugins/marvell/pp2/
H A Dpp2_api.c63 vnet_hw_interface_t *hw; local
69 hw = vnet_get_sup_hw_interface (vnm, mp->sw_if_index);
70 if (hw == NULL || mrvl_pp2_device_class.index != hw->dev_class_index)
76 dif = pool_elt_at_index (pp2->interfaces, hw->dev_instance);
H A Dcli.c71 vnet_hw_interface_t *hw; local
97 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
98 if (hw == NULL || mrvl_pp2_device_class.index != hw->dev_class_index)
101 dif = pool_elt_at_index (mm->interfaces, hw->dev_instance);
/vpp/src/vnet/devices/virtio/
H A Dcli.c75 vnet_hw_interface_t *hw; local
101 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
102 if (hw == NULL || virtio_device_class.index != hw->dev_class_index)
105 vif = pool_elt_at_index (vim->interfaces, hw->dev_instance);
128 vnet_hw_interface_t *hw; local
162 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
163 if (hw == NULL || virtio_device_class.index != hw->dev_class_index)
166 vif = pool_elt_at_index (vim->interfaces, hw
[all...]
H A Dvirtio_api.c103 vnet_hw_interface_t *hw; local
108 hw =
111 if (hw == NULL || virtio_device_class.index != hw->dev_class_index)
117 vif = pool_elt_at_index (vim->interfaces, hw->dev_instance);
/vpp/extras/deprecated/dpdk-hqos/api/
H A Ddpdk_api.c58 vnet_hw_interface_t *hw; local
63 hw = vnet_get_sup_hw_interface (dm->vnet_main, sw_if_index);
65 xd = vec_elt_at_index (dm->devices, hw->dev_instance);
110 vnet_hw_interface_t *hw; local
115 hw = vnet_get_sup_hw_interface (dm->vnet_main, sw_if_index);
117 xd = vec_elt_at_index (dm->devices, hw->dev_instance);
163 vnet_hw_interface_t *hw; local
168 hw = vnet_get_sup_hw_interface (dm->vnet_main, sw_if_index);
170 xd = vec_elt_at_index (dm->devices, hw->dev_instance);
/vpp/src/plugins/unittest/
H A Dmfib_test.c66 vnet_hw_interface_t * hw[4]; member in struct:test_main_t_
140 tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
143 tm->hw[i]->sw_if_index);
145 tm->hw[i]->sw_if_index);
146 ip4_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
147 ip6_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
150 tm->hw[i]->sw_if_index);
152 tm->hw[i]->sw_if_index);
153 ip4_main.mfib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
154 ip6_main.mfib_index_by_sw_if_index[tm->hw[
[all...]
H A Dfib_test.c84 vnet_hw_interface_t * hw[4]; member in struct:test_main_t_
157 tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
160 tm->hw[i]->sw_if_index);
162 tm->hw[i]->sw_if_index);
163 ip4_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
164 ip6_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
167 tm->hw[i]->sw_if_index,
176 tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
787 ip4_main.fib_index_by_sw_if_index[tm->hw[ii]->sw_if_index] = fib_index;
884 tm->hw[
[all...]
H A Dbier_test.c73 vnet_hw_interface_t * hw[4]; member in struct:test_main_t_
135 tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
137 vec_validate (ip4_main.fib_index_by_sw_if_index, tm->hw[i]->sw_if_index);
138 vec_validate (ip6_main.fib_index_by_sw_if_index, tm->hw[i]->sw_if_index);
139 ip4_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
140 ip6_main.fib_index_by_sw_if_index[tm->hw[i]->sw_if_index] = 0;
142 tm->hw[i]->sw_if_index,
151 tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
393 tm->hw[0]->sw_if_index);
415 tm->hw[
[all...]
/vpp/src/vnet/adj/
H A Drewrite.c75 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
76 return (hw->output_node_index);
110 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
112 vnet_get_hw_interface_class (vnm, hw->hw_class_index);
169 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
171 vnet_get_hw_interface_class (vnm, hw->hw_class_index);
182 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index); local
184 vnet_get_hw_interface_class (vnm, hw->hw_class_index);
/vpp/src/vnet/devices/tap/
H A Dtap.c141 vnet_hw_interface_t *hw; local
722 hw = vnet_get_hw_interface (vnm, vif->hw_if_index);
723 hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE;
726 hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO |
731 hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD;
778 vnet_hw_interface_t *hw; local
780 hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
781 if (hw == NULL || virtio_device_class.index != hw->dev_class_index)
784 vif = pool_elt_at_index (mm->interfaces, hw
813 vnet_hw_interface_t *hw; local
870 vnet_hw_interface_t *hw; local
[all...]
/vpp/src/vnet/l2/
H A Dl2_bvi.c217 vnet_hw_interface_t *hw = vnet_get_sup_hw_interface (vnm, sw_if_index);
218 if (hw == 0 || hw->dev_class_index != bvi_device_class.index)
221 if (bvi_instance_free (hw->dev_instance) < 0)
224 ethernet_delete_interface (vnm, hw->hw_if_index);
/vpp/src/plugins/vmxnet3/
H A Dvmxnet3_api.c73 vnet_hw_interface_t *hw; local
76 hw =
79 if (hw == NULL || vmxnet3_device_class.index != hw->dev_class_index)
85 vd = pool_elt_at_index (vmxm->devices, hw->dev_instance);
/vpp/src/plugins/nsim/
H A Dnsim.c48 vnet_hw_interface_t *hw; local
73 hw = vnet_get_hw_interface (nsm->vnet_main, sw_if_index0);
76 nsim_input_node.index, hw->output_node_index);
78 hw = vnet_get_hw_interface (nsm->vnet_main, sw_if_index1);
81 nsim_input_node.index, hw->output_node_index);
99 vnet_hw_interface_t *hw; local
116 hw = vnet_get_hw_interface (nsm->vnet_main, sw_if_index);
122 hw->tx_node_index);

Completed in 22 milliseconds

123