thunderbolt: Extend tunnel creation to more than 2 adjacent switches
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sun, 19 Feb 2017 20:11:41 +0000 (22:11 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:52 +0000 (11:18 +0300)
commit8c7acaaf020fe54baf2eccc5e1071341754d22be
treef0b16cbe22be673634753c604dca21cb6e558350
parentfb19fac1d734504073fee64e9f9b28ccd41ab350
thunderbolt: Extend tunnel creation to more than 2 adjacent switches

Now that we can allocate hop IDs per port on a path, we can take
advantage of this and create tunnels covering longer paths than just
between two adjacent switches. PCIe actually does not need this as it
is typically a daisy chain between two adjacent switches but this way we
do not need to hard-code creation of the tunnel.

While there add name to struct tb_path to make debugging easier, and
update kernel-doc comments.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/path.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tunnel.c