]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libcxgbi: update route finding logic
authorVarun Prakash <varun@chelsio.com>
Sun, 14 Apr 2019 14:53:31 +0000 (20:23 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Apr 2019 02:14:20 +0000 (22:14 -0400)
commit0b2e2713635ed0f6114acd5ee9ccc1d1fc237ba0
tree37e4e15c01c9324d10c829dd2081156d7be6d709
parenta95e7ac28805318033a5b964a29e857df163b2c4
scsi: libcxgbi: update route finding logic

To support vlan and bridge devices first find route using ifindex 0, if
route is not found through net device associated with input scsi host then
find route using ifindex of net device.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.c