From: Rob T. <ro...@rt...> - 2022-02-24 21:11:36
|
On 2/24/2022 10:04 PM, Chesnokov Gleb wrote: > Hi Rob, > >> How can I tell physical ports and vports apart once they are >> created? Is there any readable flag in this tree that will indicate if >> I'm dealing with a physical port entry or a vport? > I found the hw_target attribute which might help you. > > https://github.com/SCST-project/scst/blob/master/qla2x00t/qla2x00-target/README#L265 > > But I think it might be broken for the qla2x00t-32gbit driver. > Could you check it out? If it's really broken, I'll take a closer look at it tomorrow. > > Thanks, > > Gleb. Hi Gleb, That would be exactly what I'd need. And indeed it appears to be broken: HBA: root@fcvtl:/sys/kernel/scst_tgt/targets/qla2x00t# cat 21\:00\:00\:24\:ff\:2f\:90\:5e/hw_target 1 <= correct vport: root@fcvtl:/sys/kernel/scst_tgt/targets/qla2x00t# cat 50\:38\:71\:cb\:ab\:00\:00\:00/hw_target 1 <= Not really.. Thanks in advance for looking into this! Rob |