Commit ccfa110c authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller
Browse files

qede: Ethtool flash update support.



The patch adds ethtool callback implementation for flash update.

Signed-off-by: default avatarSudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: default avatarAriel Elior <ariel.elior@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3a69cae8
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -699,6 +699,14 @@ static u32 qede_get_link(struct net_device *dev)
	return current_link.link_up;
	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,
static int qede_get_coalesce(struct net_device *dev,
			     struct ethtool_coalesce *coal)
			     struct ethtool_coalesce *coal)
{
{
@@ -1806,6 +1814,7 @@ static const struct ethtool_ops qede_ethtool_ops = {


	.get_tunable = qede_get_tunable,
	.get_tunable = qede_get_tunable,
	.set_tunable = qede_set_tunable,
	.set_tunable = qede_set_tunable,
	.flash_device = qede_flash_device,
};
};


static const struct ethtool_ops qede_vf_ethtool_ops = {
static const struct ethtool_ops qede_vf_ethtool_ops = {