Commit 269afb36 authored by Manish Rangankar's avatar Manish Rangankar Committed by David S. Miller

qedi: Add get_generic_tlv_data handler.

Signed-off-by: default avatarManish Rangankar <manish.rangankar@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 534bbdf8
...@@ -995,6 +995,21 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi, ...@@ -995,6 +995,21 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi,
return ret; return ret;
} }
static void qedi_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data)
{
struct qedi_ctx *qedi;
if (!dev) {
QEDI_INFO(NULL, QEDI_LOG_EVT,
"dev is NULL so ignoring get_generic_tlv_data request.\n");
return;
}
qedi = (struct qedi_ctx *)dev;
memset(data, 0, sizeof(struct qed_generic_tlvs));
ether_addr_copy(data->mac[0], qedi->mac);
}
/* /*
* Protocol TLV handler * Protocol TLV handler
*/ */
...@@ -1078,6 +1093,7 @@ static struct qed_iscsi_cb_ops qedi_cb_ops = { ...@@ -1078,6 +1093,7 @@ static struct qed_iscsi_cb_ops qedi_cb_ops = {
{ {
.link_update = qedi_link_update, .link_update = qedi_link_update,
.get_protocol_tlv_data = qedi_get_protocol_tlv_data, .get_protocol_tlv_data = qedi_get_protocol_tlv_data,
.get_generic_tlv_data = qedi_get_generic_tlv_data,
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment