From: Sudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
To: <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, <Ariel.Elior@cavium.com>,
<yuvalm@mellanox.com>
Subject: [PATCH net-next v2 5/5] qede: Ethtool flash update support.
Date: Wed, 28 Mar 2018 01:43:31 -0700 [thread overview]
Message-ID: <20180328084331.2435-6-sudarsana.kalluru@cavium.com> (raw)
In-Reply-To: <20180328084331.2435-1-sudarsana.kalluru@cavium.com>
The patch adds ethtool callback implementation for flash update.
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
---
drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
index 4ca3847..ecbf1de 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c
@@ -699,6 +699,14 @@ static u32 qede_get_link(struct net_device *dev)
return current_link.link_up;
}
+static int qede_flash_device(struct net_device *dev,
+ struct ethtool_flash *flash)
+{
+ struct qede_dev *edev = netdev_priv(dev);
+
+ return edev->ops->common->nvm_flash(edev->cdev, flash->data);
+}
+
static int qede_get_coalesce(struct net_device *dev,
struct ethtool_coalesce *coal)
{
@@ -1806,6 +1814,7 @@ static int qede_set_eee(struct net_device *dev, struct ethtool_eee *edata)
.get_tunable = qede_get_tunable,
.set_tunable = qede_set_tunable,
+ .flash_device = qede_flash_device,
};
static const struct ethtool_ops qede_vf_ethtool_ops = {
--
1.8.3.1
prev parent reply other threads:[~2018-03-28 8:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 8:43 [PATCH net-next v2 0/5] qed*: Flash upgrade support Sudarsana Reddy Kalluru
2018-03-28 8:43 ` [PATCH net-next v2 1/5] qed: Populate nvm image attribute shadow Sudarsana Reddy Kalluru
2018-03-28 8:43 ` [PATCH net-next v2 2/5] qed: Fix PTT entry leak in the selftest error flow Sudarsana Reddy Kalluru
2018-03-28 8:43 ` [PATCH net-next v2 3/5] qed: Add APIs for flash access Sudarsana Reddy Kalluru
2018-03-28 8:43 ` [PATCH net-next v2 4/5] qed: Adapter flash update support Sudarsana Reddy Kalluru
2018-03-28 8:43 ` Sudarsana Reddy Kalluru [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180328084331.2435-6-sudarsana.kalluru@cavium.com \
--to=sudarsana.kalluru@cavium.com \
--cc=Ariel.Elior@cavium.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yuvalm@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox