netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] devlink: Support setting max_io_eqs
@ 2024-04-10 11:58 Parav Pandit
  2024-04-10 11:58 ` [PATCH v2 1/2] uapi: Update devlink kernel headers Parav Pandit
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Parav Pandit @ 2024-04-10 11:58 UTC (permalink / raw)
  To: netdev, dsahern, stephen; +Cc: jiri, shayd, Parav Pandit

Devices send event notifications for the IO queues,
such as tx and rx queues, through event queues.

Enable a privileged owner, such as a hypervisor PF, to set the number
of IO event queues for the VF and SF during the provisioning stage.

example:
Get maximum IO event queues of the VF device::

  $ devlink port show pci/0000:06:00.0/2
  pci/0000:06:00.0/2: type eth netdev enp6s0pf0vf1 flavour pcivf pfnum 0 vfnum 1
      function:
          hw_addr 00:00:00:00:00:00 ipsec_packet disabled max_io_eqs 10

Set maximum IO event queues of the VF device::

  $ devlink port function set pci/0000:06:00.0/2 max_io_eqs 32

  $ devlink port show pci/0000:06:00.0/2
  pci/0000:06:00.0/2: type eth netdev enp6s0pf0vf1 flavour pcivf pfnum 0 vfnum 1
      function:
          hw_addr 00:00:00:00:00:00 ipsec_packet disabled max_io_eqs 32

patch summary:
patch-1 updates devlink uapi
patch-2 adds print, get and set routines for max_io_eqs field

changelog:
v1->v2:
- addressed comments from Jiri
- updated man page for the new parameter
- corrected print to not have EQs value as optional
- replaced 'value' with 'EQs'

Parav Pandit (2):
  uapi: Update devlink kernel headers
  devlink: Support setting max_io_eqs

 devlink/devlink.c            | 29 ++++++++++++++++++++++++++++-
 include/uapi/linux/devlink.h |  1 +
 man/man8/devlink-port.8      | 12 ++++++++++++
 3 files changed, 41 insertions(+), 1 deletion(-)

-- 
2.26.2


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

end of thread, other threads:[~2024-04-13 16:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-10 11:58 [PATCH v2 0/2] devlink: Support setting max_io_eqs Parav Pandit
2024-04-10 11:58 ` [PATCH v2 1/2] uapi: Update devlink kernel headers Parav Pandit
2024-04-10 11:58 ` [PATCH v2 2/2] devlink: Support setting max_io_eqs Parav Pandit
2024-04-10 23:22 ` [PATCH v2 0/2] " Samudrala, Sridhar
2024-04-11  2:32   ` Parav Pandit
2024-04-11 23:03     ` Samudrala, Sridhar
2024-04-12  2:06       ` David Ahern
2024-04-12  3:31         ` Parav Pandit
2024-04-12  5:22           ` Parav Pandit
2024-04-12 22:03             ` Samudrala, Sridhar
2024-04-13  2:01               ` Parav Pandit
2024-04-13 16:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).