File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -995,6 +995,21 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi,
995
995
return ret ;
996
996
}
997
997
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
+
998
1013
/*
999
1014
* Protocol TLV handler
1000
1015
*/
@@ -1078,6 +1093,7 @@ static struct qed_iscsi_cb_ops qedi_cb_ops = {
1078
1093
{
1079
1094
.link_update = qedi_link_update ,
1080
1095
.get_protocol_tlv_data = qedi_get_protocol_tlv_data ,
1096
+ .get_generic_tlv_data = qedi_get_generic_tlv_data ,
1081
1097
}
1082
1098
};
1083
1099
You can’t perform that action at this time.
0 commit comments