netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 00/10] Adding permanent config get/set to devlink
@ 2017-10-24 20:12 Steve Lin
  2017-10-24 20:12 ` [PATCH net-next v3 01/10] devlink: Add permanent config parameter get/set operations Steve Lin
                   ` (9 more replies)
  0 siblings, 10 replies; 23+ messages in thread
From: Steve Lin @ 2017-10-24 20:12 UTC (permalink / raw)
  To: netdev; +Cc: jiri, davem, michael.chan, linville, gospo, steven.lin1, yuvalm

Changes since v2:

* Removed references to "NVRAM" in comments / commits.
* Add parameter descriptions to header file.
* Split bnxt patch into infrastructure, then one patch
  for each new parameter.
* Cleaned up goofs (unused parameters leftover from v1)
* Used enum rather than u32 in prototype for perm_config_get()
  and _set().
* Defined DEVLINK_ATTR_PERM_CONFIG_TYPE so future parameters
  can use arbitrary types (not just U32 and smaller).
* Reverse Christmas tree local variable definitions.
* No longer return original/previous value of parameter in
  response to set.
* Check parameter within enum limits before using it as array
  index.

I have NOT implemented the following suggested changes:

* Have driver report what parameters and parameter options it
  supports.  Could be done in future patch by defining new
  devlink op.
* Support parameters spread across multi-part netlink messages.
  See discussion on list - this doesn't seem necessary even
  for devices with large number of parameters.
* Support specifying per-VF config, if the VFs don't have
  pci b/d/f associated with them.  See discussion on list;
  if/when this support is required, could add
  DEVLINK_ATTR_PERM_CONFIG_VF_INDEX to describe, without
  breaking UAPI.
* Rolling back previously set parameters in a collection of
  sets, when one fails.  Instead, we report back to user
  which sets were successful, so they know which were set
  and which weren't, and can decide how to proceed.

--

Adds a devlink command for getting & setting permanent /
persistent device configuration parameters, and enumerates
the parameters as nested devlink attributes.

bnxt driver patches makes use of these new devlink cmds.

Steve Lin (10):
  devlink: Add permanent config parameter get/set operations
  devlink: Adding SR-IOV enablement perm config param
  devlink: Adding num VFs per PF permanent config param
  devlink: Adding max PF MSI-X vectors perm config param
  devlink: Adding num MSI-X vectors per VF perm config param
  bnxt: Add devlink support for config get/set
  bnxt: Adding SR-IOV enablement permanent cfg param
  bnxt: Adding num VFs per PF perm config param
  bnxt: Adding max PF MSI-X vectors perm config param
  bnxt: Adding num MSI-X vectors per VF perm config param

 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 281 +++++++++++++++++++-
 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h |  17 ++
 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h     | 100 ++++++++
 include/net/devlink.h                             |   6 +
 include/uapi/linux/devlink.h                      |  33 +++
 net/core/devlink.c                                | 299 ++++++++++++++++++++++
 6 files changed, 730 insertions(+), 6 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-10-25  9:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24 20:12 [PATCH net-next v3 00/10] Adding permanent config get/set to devlink Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 01/10] devlink: Add permanent config parameter get/set operations Steve Lin
2017-10-24 21:22   ` Yuval Mintz
2017-10-25  2:14     ` Steve Lin
2017-10-25  5:41       ` Yuval Mintz
2017-10-25  2:53   ` David Miller
2017-10-25  9:13   ` Jiri Pirko
2017-10-24 20:12 ` [PATCH net-next v3 02/10] devlink: Adding SR-IOV enablement perm config param Steve Lin
2017-10-25  5:41   ` Yuval Mintz
2017-10-25  9:29   ` Jiri Pirko
2017-10-24 20:12 ` [PATCH net-next v3 03/10] devlink: Adding num VFs per PF permanent " Steve Lin
2017-10-25  5:41   ` Yuval Mintz
2017-10-24 20:12 ` [PATCH net-next v3 04/10] devlink: Adding max PF MSI-X vectors perm " Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 05/10] devlink: Adding num MSI-X vectors per VF " Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 06/10] bnxt: Add devlink support for config get/set Steve Lin
2017-10-24 20:52   ` Michael Chan
2017-10-25  2:01     ` Steve Lin
2017-10-25  5:55   ` Yuval Mintz
2017-10-25  6:40     ` Michael Chan
2017-10-24 20:12 ` [PATCH net-next v3 07/10] bnxt: Adding SR-IOV enablement permanent cfg param Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 08/10] bnxt: Adding num VFs per PF perm config param Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 09/10] bnxt: Adding max PF MSI-X vectors " Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 10/10] bnxt: Adding num MSI-X vectors per VF " Steve Lin

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).