Lines Matching refs:repr

94 		struct ice_repr *repr = pf->vf[q_id].repr;  in ice_eswitch_remap_rings_to_vectors()  local
95 struct ice_q_vector *q_vector = repr->q_vector; in ice_eswitch_remap_rings_to_vectors()
106 tx_ring->netdev = repr->netdev; in ice_eswitch_remap_rings_to_vectors()
116 rx_ring->netdev = repr->netdev; in ice_eswitch_remap_rings_to_vectors()
131 struct ice_vsi *vsi = pf->vf[i].repr->src_vsi; in ice_eswitch_setup_reprs()
135 vf->repr->dst = metadata_dst_alloc(0, METADATA_HW_PORT_MUX, in ice_eswitch_setup_reprs()
137 if (!vf->repr->dst) { in ice_eswitch_setup_reprs()
148 metadata_dst_free(vf->repr->dst); in ice_eswitch_setup_reprs()
156 metadata_dst_free(vf->repr->dst); in ice_eswitch_setup_reprs()
164 netif_napi_add(vf->repr->netdev, &vf->repr->q_vector->napi, ice_napi_poll, in ice_eswitch_setup_reprs()
167 netif_keep_dst(vf->repr->netdev); in ice_eswitch_setup_reprs()
179 struct ice_repr *repr = pf->vf[i].repr; in ice_eswitch_setup_reprs() local
180 struct ice_vsi *vsi = repr->src_vsi; in ice_eswitch_setup_reprs()
183 ctrl_vsi->target_netdevs[vsi->vsi_num] = repr->netdev; in ice_eswitch_setup_reprs()
185 dst = repr->dst; in ice_eswitch_setup_reprs()
187 dst->u.port_info.lower_dev = repr->netdev; in ice_eswitch_setup_reprs()
188 ice_repr_set_traffic_vsi(repr, ctrl_vsi); in ice_eswitch_setup_reprs()
195 struct ice_vsi *vsi = pf->vf[i].repr->src_vsi; in ice_eswitch_setup_reprs()
199 metadata_dst_free(vf->repr->dst); in ice_eswitch_setup_reprs()
219 struct ice_vsi *vsi = pf->vf[i].repr->src_vsi; in ice_eswitch_release_reprs()
223 metadata_dst_free(vf->repr->dst); in ice_eswitch_release_reprs()
227 netif_napi_del(&vf->repr->q_vector->napi); in ice_eswitch_release_reprs()
238 struct ice_repr *repr; in ice_eswitch_update_repr() local
246 repr = vf->repr; in ice_eswitch_update_repr()
247 repr->src_vsi = vsi; in ice_eswitch_update_repr()
248 repr->dst->u.port_info.port_id = vsi->vsi_num; in ice_eswitch_update_repr()
268 struct ice_repr *repr; in ice_eswitch_port_start_xmit() local
277 repr = ice_netdev_to_repr(netdev); in ice_eswitch_port_start_xmit()
279 dst_hold((struct dst_entry *)repr->dst); in ice_eswitch_port_start_xmit()
280 skb_dst_set(skb, (struct dst_entry *)repr->dst); in ice_eswitch_port_start_xmit()
281 skb->queue_mapping = repr->vf->vf_id; in ice_eswitch_port_start_xmit()
350 netif_napi_del(&pf->vf[i].repr->q_vector->napi); in ice_eswitch_napi_del()
362 napi_enable(&pf->vf[i].repr->q_vector->napi); in ice_eswitch_napi_enable()
374 napi_disable(&pf->vf[i].repr->q_vector->napi); in ice_eswitch_napi_disable()
590 struct ice_repr *repr; in ice_eswitch_start_all_tx_queues() local
597 repr = pf->vf[i].repr; in ice_eswitch_start_all_tx_queues()
598 if (repr) in ice_eswitch_start_all_tx_queues()
599 ice_repr_start_tx_queues(repr); in ice_eswitch_start_all_tx_queues()
609 struct ice_repr *repr; in ice_eswitch_stop_all_tx_queues() local
616 repr = pf->vf[i].repr; in ice_eswitch_stop_all_tx_queues()
617 if (repr) in ice_eswitch_stop_all_tx_queues()
618 ice_repr_stop_tx_queues(repr); in ice_eswitch_stop_all_tx_queues()