Lines Matching refs:vpaths
120 VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo);
130 ring = &vdev->vpaths[i].ring;
670 vpath = &vdev->vpaths[vpath_idx];
680 vpath = &vdev->vpaths[vpath_idx];
696 vpath = &vdev->vpaths[vpath_idx];
792 fifo = &vdev->vpaths[vpath_no].fifo;
1035 vpath = &vdev->vpaths[i];
1045 vpath = &vdev->vpaths[i];
1058 vpath = &vdev->vpaths[i];
1077 mcast_cnt = vdev->vpaths[0].mcast_addr_cnt;
1078 list_head = &vdev->vpaths[0].mac_addr_list;
1080 (vdev->vpaths[0].mac_addr_cnt - mcast_cnt)) >
1081 vdev->vpaths[0].max_mac_addr_cnt)
1126 mcast_cnt = vdev->vpaths[0].mcast_addr_cnt;
1149 vpath = &vdev->vpaths[i];
1202 /* First delete the old mac address from all the vpaths
1205 struct vxge_vpath *vpath = &vdev->vpaths[vpath_idx];
1228 /* Set this mac address to all the vpaths */
1251 struct vxge_vpath *vpath = &vdev->vpaths[vp_id];
1284 struct vxge_vpath *vpath = &vdev->vpaths[vp_id];
1313 struct vxge_vpath *vpath = &vdev->vpaths[vp_id];
1483 "fatal: %s: can not reset vpaths",
1492 if (vdev->vpaths[i].handle) {
1494 vdev->vpaths[i].handle)
1515 vxge_restore_vpath_mac_addr(&vdev->vpaths[vp_id]);
1516 vxge_restore_vpath_vid_table(&vdev->vpaths[vp_id]);
1530 /* Get the traffic to flow through the vpaths */
1532 vxge_hw_vpath_enable(vdev->vpaths[i].handle);
1534 vxge_hw_vpath_rx_doorbell_init(vdev->vpaths[i].handle);
1605 ring = &vdev->vpaths[i].ring;
1699 "for vpath:%d", vdev->vpaths[0].device_id);
1711 vdev->vpaths[index].handle,
1719 vdev->vpaths[index].device_id);
1771 vpath = &vdev->vpaths[mac->vpath_no];
1815 vpath = &vdev->vpaths[mac->vpath_no];
1918 /* reset vpaths */
1926 vpath = &vdev->vpaths[i];
1950 /* close vpaths */
1957 vpath = &vdev->vpaths[i];
1968 /* open vpaths */
1978 vpath = &vdev->vpaths[i];
2132 vxge_hw_vpath_msix_mask(vdev->vpaths[i].handle, msix_id);
2134 status = vxge_hw_vpath_alarm_process(vdev->vpaths[i].handle,
2138 vxge_hw_vpath_msix_unmask(vdev->vpaths[i].handle,
2218 /* Try with less no of vector by reducing no of vpaths count */
2250 struct vxge_vpath *vpath = &vdev->vpaths[i];
2343 &vdev->vpaths[vp_idx].fifo);
2345 &vdev->vpaths[vp_idx].fifo;
2359 &vdev->vpaths[vp_idx].ring);
2361 &vdev->vpaths[vp_idx].ring;
2381 msix_idx += vdev->vpaths[vp_idx].device_id *
2384 vdev->vpaths[vp_idx].handle,
2405 &vdev->vpaths[0]);
2418 msix_idx = (vdev->vpaths[0].handle->vpath->vp_id *
2420 vxge_hw_vpath_msix_unmask(vdev->vpaths[vp_idx].handle,
2423 vdev->vxge_entries[intr_cnt].arg = &vdev->vpaths[0];
2434 vdev->vpaths[0].device_id);
2480 ring = &vdev->vpaths[i].ring;
2491 vpath = &vdev->vpaths[i];
2565 vpath = &vdev->vpaths[i];
2570 vpath = &vdev->vpaths[i];
2591 vpath = &vdev->vpaths[i];
2613 vpath = &vdev->vpaths[i];
2651 vpath = &vdev->vpaths[i];
2693 vpath = &vdev->vpaths[i];
2711 napi_disable(&vdev->vpaths[i].ring.napi);
2744 netif_napi_del(&vdev->vpaths[i].ring.napi);
2772 vpath_vector = vxge_mBIT(vdev->vpaths[0].device_id);
2818 napi_disable(&vdev->vpaths[i].ring.napi);
2938 net_stats->rx_packets += vdev->vpaths[k].ring.stats.rx_frms;
2939 net_stats->rx_bytes += vdev->vpaths[k].ring.stats.rx_bytes;
2940 net_stats->rx_errors += vdev->vpaths[k].ring.stats.rx_errors;
2941 net_stats->multicast += vdev->vpaths[k].ring.stats.rx_mcast;
2943 vdev->vpaths[k].ring.stats.rx_dropped;
2945 net_stats->tx_packets += vdev->vpaths[k].fifo.stats.tx_frms;
2946 net_stats->tx_bytes += vdev->vpaths[k].fifo.stats.tx_bytes;
2947 net_stats->tx_errors += vdev->vpaths[k].fifo.stats.tx_errors;
3013 vpath = &vdev->vpaths[0];
3022 vpath = &vdev->vpaths[vp];
3030 vpath = &vdev->vpaths[0];
3038 if (vdev->vpaths[i].is_configured)
3039 vdev->vpaths[i].ring.vlgrp = grp;
3064 vpath = &vdev->vpaths[vp_id];
3093 vpath = &vdev->vpaths[vp_id];
3178 vdev->vpaths = kzalloc((sizeof(struct vxge_vpath)) *
3180 if (!vdev->vpaths) {
3248 kfree(vdev->vpaths);
3314 vpath = &vdev->vpaths[vpath_idx];
3413 "%s: Assigning equal bandwidth to all the vpaths",
3526 Set CI to OFF for all vpaths */
4082 "%s: No vpaths available in device", VXGE_DRIVER_NAME);
4096 /* Check how many vpaths are available */
4118 * Configure vpaths and get driver configured number of vpaths
4119 * which is less than or equal to the maximum vpaths per function.
4124 "%s: No more vpaths to configure", VXGE_DRIVER_NAME);
4194 vdev->vpaths[j].is_configured = 1;
4195 vdev->vpaths[j].device_id = i;
4196 vdev->vpaths[j].ring.driver_id = j;
4197 vdev->vpaths[j].vdev = vdev;
4198 vdev->vpaths[j].max_mac_addr_cnt = max_mac_vpath;
4199 memcpy((u8 *)vdev->vpaths[j].macaddr,
4204 INIT_LIST_HEAD(&vdev->vpaths[j].mac_addr_list);
4206 vdev->vpaths[j].mac_addr_cnt = 0;
4207 vdev->vpaths[j].mcast_addr_cnt = 0;
4215 /* map the hashing selector table to the configured vpaths */
4219 macaddr = (u8 *)vdev->vpaths[0].macaddr;
4270 memcpy(vdev->ndev->dev_addr, (u8 *)vdev->vpaths[0].macaddr, ETH_ALEN);
4287 list_add(&entry->item, &vdev->vpaths[i].mac_addr_list);
4288 vdev->vpaths[i].mac_addr_cnt = 1;
4325 vxge_free_mac_add_list(&vdev->vpaths[i]);
4380 vxge_free_mac_add_list(&vdev->vpaths[i]);
4381 vdev->vpaths[i].mcast_addr_cnt = 0;
4382 vdev->vpaths[i].mac_addr_cnt = 0;
4385 kfree(vdev->vpaths);