public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/6] Show statistics for a vdpa device
@ 2022-05-18 13:37 Eli Cohen
  2022-05-18 13:37 ` [PATCH v8 1/6] vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit Eli Cohen
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Eli Cohen @ 2022-05-18 13:37 UTC (permalink / raw)
  To: mst, jasowang; +Cc: virtualization, linux-kernel, si-wei.liu, Eli Cohen

The following six patch series adds support to read vendor statistics
for a vdpa device.

The first patch is just a cleanup fix.
The second patch lays the ground to allow an upstream driver to provide
statistics in the form of an attribute name/attribute value pairs.

The third and fourth patches make changes to locking scheme to use
readers/writers semaphore instead if mutex.

The fifth patch implements this for mlx5_vdpa which gives received
descriptors and completed descriptors information for all the
virtqueues.

The sixth patch changes reslock mutex to readers/writers semaphore to
achieve the same goal as done in vdpa core.

v7 -> v8:
Convert cf_mutex to a rw_semaphore

Eli Cohen (6):
  vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit
  vdpa: Add support for querying vendor statistics
  net/vdpa: Use readers/writers semaphore instead of vdpa_dev_mutex
  net/vdpa: Use readers/writers semaphore instead of cf_mutex
  vdpa/mlx5: Add support for reading descriptor statistics
  vdpa/mlx5: Use readers/writers semaphore instead of mutex

 drivers/vdpa/mlx5/core/mlx5_vdpa.h |   2 +
 drivers/vdpa/mlx5/net/mlx5_vnet.c  | 186 ++++++++++++++++++---
 drivers/vdpa/vdpa.c                | 252 ++++++++++++++++++++++++-----
 include/linux/mlx5/mlx5_ifc.h      |   1 +
 include/linux/mlx5/mlx5_ifc_vdpa.h |  39 +++++
 include/linux/vdpa.h               |  15 +-
 include/uapi/linux/vdpa.h          |   6 +
 7 files changed, 432 insertions(+), 69 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-18 13:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-18 13:37 [PATCH v8 0/6] Show statistics for a vdpa device Eli Cohen
2022-05-18 13:37 ` [PATCH v8 1/6] vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit Eli Cohen
2022-05-18 13:38 ` [PATCH v8 2/6] vdpa: Add support for querying vendor statistics Eli Cohen
2022-05-18 13:38 ` [PATCH v8 3/6] net/vdpa: Use readers/writers semaphore instead of vdpa_dev_mutex Eli Cohen
2022-05-18 13:38 ` [PATCH v8 4/6] net/vdpa: Use readers/writers semaphore instead of cf_mutex Eli Cohen
2022-05-18 13:38 ` [PATCH v8 5/6] vdpa/mlx5: Add support for reading descriptor statistics Eli Cohen
2022-05-18 13:38 ` [PATCH v8 6/6] vdpa/mlx5: Use readers/writers semaphore instead of mutex Eli Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox