[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190214214046.19182-1-jakub.kicinski@netronome.com>
Date: Thu, 14 Feb 2019 13:40:43 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: davem@...emloft.net, jiri@...nulli.us
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com,
mkubecek@...e.cz, andrew@...n.ch,
Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH net-next 0/3] devlink: add the ability to update device flash
Hi!
This series is the second step to allow trouble shooting and recovering
devices in bad state without the use of netdevs as handles. We can
already query FW versions over devlink, now we add the ability to update
the FW. This will allow drivers to implement some from of "limp-mode"
where the device can't really be used for networking and hence has no
netdev, but we can interrogate it over devlink and fix the broken FW.
Small but nice advantage of devlink is that it only holds the devlink
instance lock during flashing, unlike ethtool which holds rtnl_lock().
Jakub Kicinski (3):
devlink: add flash update command
ethtool: add compat for flash update
nfp: devlink: allow flashing the device via devlink
.../net/ethernet/netronome/nfp/nfp_devlink.c | 10 ++++
drivers/net/ethernet/netronome/nfp/nfp_main.c | 41 +++++++++++++
drivers/net/ethernet/netronome/nfp/nfp_main.h | 2 +
.../ethernet/netronome/nfp/nfp_net_ethtool.c | 35 +----------
include/net/devlink.h | 10 ++++
include/uapi/linux/devlink.h | 6 ++
net/core/devlink.c | 60 +++++++++++++++++++
net/core/ethtool.c | 12 +++-
8 files changed, 141 insertions(+), 35 deletions(-)
--
2.19.2
Powered by blists - more mailing lists