net: thunderbolt: Enable end-to-end flow control also in transmitAccording to USB4 specification, if E2E flow control is disabled forthe Transmit Descriptor Ring, the Host Interface Adapter Layer
net: thunderbolt: Enable end-to-end flow control also in transmitAccording to USB4 specification, if E2E flow control is disabled forthe Transmit Descriptor Ring, the Host Interface Adapter Layer shallnot require any credits to be available before transmitting a TunneledPacket from this Transmit Descriptor Ring, so e2e flow control shouldbe enabled in both directions.Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>Link: https://lore.kernel.org/20250624153805.GC2824380@black.fi.intel.comSigned-off-by: zhangjianrong <zhangjianrong5@huawei.com>Link: https://patch.msgid.link/20250628093813.647005-1-zhangjianrong5@huawei.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths()According to the description of tb_xdomain_enable_paths(), the thirdparameter represents the tran
net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths()According to the description of tb_xdomain_enable_paths(), the thirdparameter represents the transmit ring and the fifth parameter representsthe receive ring. tb_xdomain_disable_paths() is the same case.[Jakub] Mika says: it works now because both rings ->hop is the sameAcked-by: Mika Westerberg <mika.westerberg@linux.intel.com>Link: https://lore.kernel.org/20250625051149.GD2824380@black.fi.intel.comSigned-off-by: zhangjianrong <zhangjianrong5@huawei.com>Link: https://patch.msgid.link/20250628094920.656658-1-zhangjianrong5@huawei.comSigned-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Fix TCPv6 GSO checksum calculationAlex reported that running ssh over IPv6 does not work withThunderbolt/USB4 networking driver. The reason for that is that drivershould call sk
net: thunderbolt: Fix TCPv6 GSO checksum calculationAlex reported that running ssh over IPv6 does not work withThunderbolt/USB4 networking driver. The reason for that is that drivershould call skb_is_gso() before calling skb_is_gso_v6(), and it shouldnot return false after calculates the checksum successfully. This probablywas a copy paste error from the original driver where it was done properly.Reported-by: Alex Balcanquall <alex@alexbal.com>Fixes: e69b6c02b4c3 ("net: Add support for networking over Thunderbolt cable")Cc: stable@vger.kernel.orgSigned-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Reviewed-by: Eric Dumazet <edumazet@google.com>Reviewed-by: Jiri Pirko <jiri@nvidia.com>Reviewed-by: Jiri Pirko <jiri@nvidia.com>Signed-off-by: David S. Miller <davem@davemloft.net>
net: thunderbolt: Fix typos in commentsFix two typos in comments: blongs -> belongs UPD -> UDPNo functional changes.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Reviewe
net: thunderbolt: Fix typos in commentsFix two typos in comments: blongs -> belongs UPD -> UDPNo functional changes.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Reviewed-by: Simon Horman <simon.horman@corigine.com>Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Fix sparse warnings in tbnet_xmit_csum_and_map()Fixes the following warning when the driver is built with sparse checksenabled:main.c:993:23: warning: incorrect type in initial
net: thunderbolt: Fix sparse warnings in tbnet_xmit_csum_and_map()Fixes the following warning when the driver is built with sparse checksenabled:main.c:993:23: warning: incorrect type in initializer (different base types)main.c:993:23: expected restricted __wsum [usertype] wsummain.c:993:23: got restricted __be32 [usertype]No functional changes intended.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Reviewed-by: Simon Horman <simon.horman@corigine.com>Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Fix sparse warnings in tbnet_check_frame() and tbnet_poll()Fixes the following warnings when the driver is built with sparsechecks enabled:main.c:767:47: warning: restricted __
net: thunderbolt: Fix sparse warnings in tbnet_check_frame() and tbnet_poll()Fixes the following warnings when the driver is built with sparsechecks enabled:main.c:767:47: warning: restricted __le32 degrades to integermain.c:775:47: warning: restricted __le16 degrades to integermain.c:776:44: warning: restricted __le16 degrades to integermain.c:876:40: warning: incorrect type in assignment (different base types)main.c:876:40: expected restricted __le32 [usertype] frame_sizemain.c:876:40: got unsigned int [assigned] [usertype] frame_sizemain.c:877:41: warning: incorrect type in assignment (different base types)main.c:877:41: expected restricted __le32 [usertype] frame_countmain.c:877:41: got unsigned int [usertype]main.c:878:41: warning: incorrect type in assignment (different base types)main.c:878:41: expected restricted __le16 [usertype] frame_indexmain.c:878:41: got unsigned short [usertype]main.c:879:38: warning: incorrect type in assignment (different base types)main.c:879:38: expected restricted __le16 [usertype] frame_idmain.c:879:38: got unsigned short [usertype]main.c:880:62: warning: restricted __le32 degrades to integermain.c:880:35: warning: restricted __le16 degrades to integerNo functional changes intended.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Reviewed-by: Simon Horman <simon.horman@corigine.com>Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Add tracepointsThese are useful when debugging various performance issues.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Acked-by: Yehezkel Bernat <YehezkelShB
net: thunderbolt: Add tracepointsThese are useful when debugging various performance issues.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Add debugging when sending/receiving control packetsThese can be useful when debugging possible issues around USB4NETcontrol packet exchange.Signed-off-by: Mika Westerberg <mik
net: thunderbolt: Add debugging when sending/receiving control packetsThese can be useful when debugging possible issues around USB4NETcontrol packet exchange.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net: thunderbolt: Move into own directoryWe will be adding tracepoints to the driver so instead of littering themain network driver directory, move the driver into its own directory.While there,
net: thunderbolt: Move into own directoryWe will be adding tracepoints to the driver so instead of littering themain network driver directory, move the driver into its own directory.While there, rename the module to thunderbolt_net (with underscore) tomatch with the thunderbolt_dma_test convention.Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>Signed-off-by: Jakub Kicinski <kuba@kernel.org>