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)
commit74dea0bed79353ce2aadcb06406d3a9d28bae57b
tree37e4e15c01c9324d10c829dd2081156d7be6d709
parentffcd686b913eab35b7f447d8e373aae16d5fed34
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