]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thunderbolt: Notify userspace about software CM tunneling events
authorAlan Borzeszkowski <alan.borzeszkowski@linux.intel.com>
Tue, 21 Jan 2025 17:46:21 +0000 (18:46 +0100)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 24 Apr 2025 05:24:39 +0000 (08:24 +0300)
commit785da9e6a1bd9e00d7494e37cbca2f66e48375b8
tree7ae3f435e2e6195a9b39d83ef0646e37d396545b
parentcdf9956b6974206e1fd20e9bd30842df9714c5b8
thunderbolt: Notify userspace about software CM tunneling events

This adds notification whenever software connection manager activates,
changes or deactivates a tunnel, and also if there is limitation in
bandwidth.

The notification looks like below:

  TUNNEL_EVENT=activated|changed|deactivated|low bandwidth|
          insufficient bandwidth
  TUNNEL_DETAILS=0:12 <-> 1:20 (USB3)

Userspace can then listen these and inform user if needed. For example
if there is not enough bandwidth, it can show warning dialog to the user.

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