thunderbolt: Correct path indices for PCIe tunnel
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 11 Jun 2019 16:31:26 +0000 (19:31 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Aug 2019 09:08:57 +0000 (12:08 +0300)
commitce19f91eae43e39d5a1da55344756ab5a3c7e8d1
treedd7346945497fee2e981f17df37ab0e0ce5454b1
parent04f7745300edbb3fbb9447586b0aafeef28abd51
thunderbolt: Correct path indices for PCIe tunnel

PCIe tunnel path indices got mixed up when we added support for tunnels
between switches that are not adjacent. This did not affect the
functionality as it is just an index but fix it now nevertheless to make
the code easier to understand.

Reported-by: Rajmohan Mani <rajmohan.mani@intel.com>
Fixes: 8c7acaaf020f ("thunderbolt: Extend tunnel creation to more than 2 adjacent switches")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
drivers/thunderbolt/tunnel.c