Thread (33 messages) 33 messages, 5 authors, 2022-10-11

Re: [RFC PATCH net-next v4 0/6] Implement devlink-rate API and extend it

From: Wilczynski, Michal <hidden>
Date: 2022-09-15 13:57:58


On 9/15/2022 3:42 PM, Michal Wilczynski wrote:
This patch series implements devlink-rate for ice driver. Unfortunately
current API isn't flexible enough for our use case, so there is a need to
extend it. New object type 'queue' is being introduced, and more functions
has been changed to non-static, to enable the driver to export current
Tx scheduling configuration.

This patch series is a follow up for this thread:
https://lore.kernel.org/netdev/20220704114513.2958937-1-michal.wilczynski@intel.com/T/#u (local)

V4:
- changed static variable counter to per port IDA to
   uniquely identify nodes

V3:
- removed shift macros, since FIELD_PREP is used
- added static_assert for struct
- removed unnecessary functions
- used tab instead of space in define

V2:
- fixed Alexandr comments
- refactored code to fix checkpatch issues
- added mutual exclusion for RDMA, DCB
I realized now that I haven't removed versioning from internal review,
please ignore this.
BR,
Michał

Ben Shelton (1):
   ice: Add function for move/reconfigure TxQ AQ command

Michal Wilczynski (5):
   devlink: Extend devlink-rate api with queues and new parameters
   ice: Introduce new parameters in ice_sched_node
   ice: Implement devlink-rate API
   ice: Export Tx scheduler configuration to devlink-rate
   ice: Prevent ADQ, DCB and RDMA coexistence with Custom Tx scheduler

  .../net/ethernet/intel/ice/ice_adminq_cmd.h   |  41 +-
  drivers/net/ethernet/intel/ice/ice_common.c   |  75 ++-
  drivers/net/ethernet/intel/ice/ice_common.h   |   8 +
  drivers/net/ethernet/intel/ice/ice_dcb.c      |   2 +-
  drivers/net/ethernet/intel/ice/ice_dcb_lib.c  |   4 +
  drivers/net/ethernet/intel/ice/ice_devlink.c  | 598 ++++++++++++++++++
  drivers/net/ethernet/intel/ice/ice_devlink.h  |   2 +
  drivers/net/ethernet/intel/ice/ice_idc.c      |   5 +
  drivers/net/ethernet/intel/ice/ice_main.c     |   2 +
  drivers/net/ethernet/intel/ice/ice_sched.c    |  81 ++-
  drivers/net/ethernet/intel/ice/ice_sched.h    |  27 +-
  drivers/net/ethernet/intel/ice/ice_type.h     |   7 +
  drivers/net/ethernet/intel/ice/ice_virtchnl.c |  10 +
  .../net/ethernet/mellanox/mlx5/core/devlink.c |   6 +-
  .../mellanox/mlx5/core/esw/devlink_port.c     |   8 +-
  .../net/ethernet/mellanox/mlx5/core/esw/qos.c |  12 +-
  .../net/ethernet/mellanox/mlx5/core/esw/qos.h |  10 +-
  drivers/net/netdevsim/dev.c                   |  32 +-
  include/net/devlink.h                         |  56 +-
  include/uapi/linux/devlink.h                  |   8 +-
  net/core/devlink.c                            | 407 ++++++++++--
  21 files changed, 1284 insertions(+), 117 deletions(-)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help