On Friday, November 24, 2023 5:22 PM, Martin K. Petersen <martin.petersen@xxxxxxxxxx> wrote: > > > Hi Karan, > > > Add fnic_num in fnic.h to identify fnic in a multi-fnic environment. > > Increment and set the fnic number during driver load in fnic_probe. > > Replace the host number with fnic number in debugfs. > > I agree with Hannes. Everything else in the stack will be using the host number. Your change will make it harder to correlate a SCSI error message to an fnic driver instance. > > If you absolutely need an instance number I suggest you add it as an orthogonal value instead replacing the host. Also, we typically use an idr for enumerating things like this. > Thanks for your review and comments, Martin. I understand the issue. I'll take your suggestion about adding the fnic instance number as an orthogonal value instead of replacing the host number. Could you please help me understand what is meant by "idr"? How can I use it? Regards, Karan