/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_net.c | 109 struct vdpasim_virtqueue *cvq = &vdpasim->vqs[2]; in vdpasim_handle_ctrl_mac() local 115 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_ctrl_mac() 129 struct vdpasim_virtqueue *cvq = &vdpasim->vqs[2]; in vdpasim_handle_cvq() local 140 if (!cvq->ready) in vdpasim_handle_cvq() 144 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_cvq() 145 &cvq->out_iov, in vdpasim_handle_cvq() 146 &cvq->head, GFP_ATOMIC); in vdpasim_handle_cvq() 151 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, &ctrl, in vdpasim_handle_cvq() 174 write = vringh_iov_push_iotlb(&cvq->vring, &cvq->out_iov, in vdpasim_handle_cvq() 176 vringh_complete_iotlb(&cvq->vring, cvq->head, write); in vdpasim_handle_cvq() [all …]
|
/openbmc/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 1799 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mac() local 1808 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)mac, ETH_ALEN); in handle_ctrl_mac() 1927 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mq() local 1946 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)&mq, sizeof(mq)); in handle_ctrl_mq() 1975 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_vlan() local 1985 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan() 1996 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan() 2017 struct mlx5_control_vq *cvq; in mlx5_cvq_kick_handler() local 2025 cvq = &mvdev->cvq; in mlx5_cvq_kick_handler() 2035 if (!cvq->ready) in mlx5_cvq_kick_handler() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | vhost_net.c | 225 NetClientState *ncs, int data_queue_pairs, int cvq) in vhost_net_enable_notifiers() argument 229 int nvhosts = data_queue_pairs + cvq; in vhost_net_enable_notifiers() 301 NetClientState *ncs, int data_queue_pairs, int cvq) in vhost_net_disable_notifiers() argument 304 data_queue_pairs + cvq); in vhost_net_disable_notifiers() 492 int data_queue_pairs, int cvq) in vhost_net_start() argument 497 int total_notifiers = data_queue_pairs * 2 + cvq; in vhost_net_start() 499 int nvhosts = data_queue_pairs + cvq; in vhost_net_start() 504 if (cvq) { in vhost_net_start() 533 r = vhost_net_enable_notifiers(dev, ncs, data_queue_pairs, cvq); in vhost_net_start() 581 vhost_net_disable_notifiers(dev, ncs, data_queue_pairs, cvq); in vhost_net_start() [all …]
|
H A D | vhost_net-stub.c | 36 int data_queue_pairs, int cvq) in vhost_net_start() argument 42 int data_queue_pairs, int cvq) in vhost_net_stop() argument
|
H A D | virtio-net.c | 268 int cvq = virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) ? in virtio_net_vhost_status() local 311 r = vhost_net_start(vdev, n->nic->ncs, queue_pairs, cvq); in virtio_net_vhost_status() 318 vhost_net_stop(vdev, n->nic->ncs, queue_pairs, cvq); in virtio_net_vhost_status()
|
/openbmc/linux/drivers/vdpa/mlx5/core/ |
H A D | resources.c | 232 mvdev->cvq.iotlb = vhost_iotlb_alloc(0, 0); in init_ctrl_vq() 233 if (!mvdev->cvq.iotlb) in init_ctrl_vq() 236 spin_lock_init(&mvdev->cvq.iommu_lock); in init_ctrl_vq() 237 vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock); in init_ctrl_vq() 244 vhost_iotlb_free(mvdev->cvq.iotlb); in cleanup_ctrl_vq()
|
H A D | mlx5_vdpa.h | 97 struct mlx5_control_vq cvq; member
|
H A D | mr.c | 460 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, start, last, start, VHOST_ACCESS_RW); in dup_iotlb() 466 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, map->start, map->last, in dup_iotlb() 476 vhost_iotlb_del_range(mvdev->cvq.iotlb, 0, ULLONG_MAX); in prune_iotlb()
|
/openbmc/qemu/include/net/ |
H A D | vhost_net.h | 22 int data_queue_pairs, int cvq); 24 int data_queue_pairs, int cvq);
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 313 int data_queue_pairs, cvq, r; in vhost_vdpa_net_log_global_enable() local 327 cvq = virtio_vdev_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) ? in vhost_vdpa_net_log_global_enable() 336 vhost_net_stop(vdev, n->nic->ncs, data_queue_pairs, cvq); in vhost_vdpa_net_log_global_enable() 339 r = vhost_net_start(vdev, n->nic->ncs, data_queue_pairs, cvq); in vhost_vdpa_net_log_global_enable()
|
/openbmc/linux/drivers/net/ |
H A D | virtio_net.c | 239 struct virtqueue *cvq; member 2521 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command() 2528 if (unlikely(!virtqueue_kick(vi->cvq))) in virtnet_send_command() 2534 while (!virtqueue_get_buf(vi->cvq, &tmp) && in virtnet_send_command() 2535 !virtqueue_is_broken(vi->cvq)) in virtnet_send_command() 4199 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()
|