[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1507815262-33294-1-git-send-email-steven.lin1@broadcom.com>
Date: Thu, 12 Oct 2017 09:34:19 -0400
From: Steve Lin <steven.lin1@...adcom.com>
To: netdev@...r.kernel.org
Cc: jiri@...lanox.com, davem@...emloft.net, michael.chan@...adcom.com,
linux-pci@...r.kernel.org, linville@...driver.com,
gospo@...adcom.com, steven.lin1@...adcom.com
Subject: [RFC 0/3] Adding config get/set to devlink
Adds a devlink command for getting & setting device configuration
parameters, and enumerates a bunch of those parameters as devlink
attributes. Also introduces an attribute that can be set by a
driver to indicate that the config change doesn't take effect
until the next restart (as in the case of the bnxt driver changes
in this patchset, for which all the configuration changes affect NVM
only, and aren't loaded until the next restart.)
bnxt driver patches make use of these new devlink cmds/attributes.
Steve Lin (3):
devlink: Add config parameter get/set operations
bnxt: Move generic devlink code to new file
bnxt: Add devlink support for config get/set
drivers/net/ethernet/broadcom/bnxt/Makefile | 2 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 +
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 403 ++++++++++++++++++++++
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h | 56 +++
drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 100 ++++++
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 97 +-----
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h | 35 +-
include/net/devlink.h | 4 +
include/uapi/linux/devlink.h | 108 ++++++
net/core/devlink.c | 207 +++++++++++
10 files changed, 882 insertions(+), 131 deletions(-)
create mode 100644 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
create mode 100644 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h
--
2.7.4
Powered by blists - more mailing lists