scsi: libcxgbi: use ndev->ifindex to find route
authorVarun Prakash <varun@chelsio.com>
Sat, 5 Aug 2017 14:06:11 +0000 (19:36 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Aug 2017 23:36:52 +0000 (19:36 -0400)
commit4737c5a0676218000e9c8874ea9ecbc9916fa278
tree81a6f96887c30a5facbcb3818b482c503ca06a65
parenta5dd7efd356abeaf268ef5e260a99453ebe01b82
scsi: libcxgbi: use ndev->ifindex to find route

If cxgbi_ep_connect() is called with valid shost then find associated
ndev and use ndev->ifindex to find route.

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