Skip to content

Commit 269afb3

Browse files
Manish Rangankardavem330
authored andcommitted
qedi: Add get_generic_tlv_data handler.
Signed-off-by: Manish Rangankar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 534bbdf commit 269afb3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/scsi/qedi/qedi_main.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,21 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi,
995995
return ret;
996996
}
997997

998+
static void qedi_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data)
999+
{
1000+
struct qedi_ctx *qedi;
1001+
1002+
if (!dev) {
1003+
QEDI_INFO(NULL, QEDI_LOG_EVT,
1004+
"dev is NULL so ignoring get_generic_tlv_data request.\n");
1005+
return;
1006+
}
1007+
qedi = (struct qedi_ctx *)dev;
1008+
1009+
memset(data, 0, sizeof(struct qed_generic_tlvs));
1010+
ether_addr_copy(data->mac[0], qedi->mac);
1011+
}
1012+
9981013
/*
9991014
* Protocol TLV handler
10001015
*/
@@ -1078,6 +1093,7 @@ static struct qed_iscsi_cb_ops qedi_cb_ops = {
10781093
{
10791094
.link_update = qedi_link_update,
10801095
.get_protocol_tlv_data = qedi_get_protocol_tlv_data,
1096+
.get_generic_tlv_data = qedi_get_generic_tlv_data,
10811097
}
10821098
};
10831099

0 commit comments

Comments
 (0)