On 6/25/20 3:30 PM, Matan Azrad wrote: > The vDPA driver uses a CQ in order to know when traffic works were > completed by the HW. > > Each traffic burst completion adds a CQE to the CQ. > > When the vDPA driver detects CQEs in the CQ, it triggers the guest > notification for the corresponding queue and consumes all of them. > > There is collapse feature in the HW that configures the HW to write all the > CQEs in the first entry of the CQ. > > Using this feature, the vDPA driver can read only the first CQE, > validate that the completion counter inside the CQE was changed and if > so, to notify the guest. > > Use CQ collapse feature in order to improve the poll utilization. > > Signed-off-by: Matan Azrad <ma...@mellanox.com> > --- > drivers/vdpa/mlx5/mlx5_vdpa_event.c | 73 > ++++++++++++++++++++----------------- > 1 file changed, 40 insertions(+), 33 deletions(-) > Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com> Thanks, Maxime
- [dpdk-dev] [PATCH 0/3] vdpa/mlx5: optimize cpu utilization Matan Azrad
- [dpdk-dev] [PATCH 3/3] vdpa/mlx5: add traffic control... Matan Azrad
- [dpdk-dev] [PATCH 1/3] vdpa/mlx5: optimize notificati... Matan Azrad
- [dpdk-dev] [PATCH 2/3] vdpa/mlx5: optimize completion... Matan Azrad
- [dpdk-dev] [PATCH v2 0/3] vdpa/mlx5: optimize cpu uti... Matan Azrad
- [dpdk-dev] [PATCH v2 1/3] vdpa/mlx5: optimize not... Matan Azrad
- Re: [dpdk-dev] [PATCH v2 1/3] vdpa/mlx5: opti... Maxime Coquelin
- [dpdk-dev] [PATCH v2 3/3] vdpa/mlx5: control comp... Matan Azrad
- Re: [dpdk-dev] [PATCH v2 3/3] vdpa/mlx5: cont... Maxime Coquelin
- [dpdk-dev] [PATCH v2 2/3] vdpa/mlx5: optimize com... Matan Azrad
- Re: [dpdk-dev] [PATCH v2 2/3] vdpa/mlx5: opti... Maxime Coquelin
- [dpdk-dev] [PATCH v3 0/3] vdpa/mlx5: optimize cpu... Matan Azrad
- [dpdk-dev] [PATCH v3 1/3] vdpa/mlx5: optimize... Matan Azrad
- [dpdk-dev] [PATCH v3 2/3] vdpa/mlx5: optimize... Matan Azrad
- [dpdk-dev] [PATCH v3 3/3] vdpa/mlx5: control ... Matan Azrad
- Re: [dpdk-dev] [PATCH v3 0/3] vdpa/mlx5: opti... Maxime Coquelin