Files
linux-stable-mirror/drivers
Dave JiangandGreg Kroah-Hartman da0c7293f4 ntb: Clean up tx tail index on link down
commit cc79bd2738 upstream.

The tx tail index is not reset when the link goes down. This causes the
tail index to go out of sync when the link goes down and comes back up.
Refactor the ntb_qp_link_down_reset() and reset the tail index as well.

Fixes: 2849b5d706 ("NTB: Reset transport QP link stats on down")
Reported-by: Yuan Y Lu <yuan.y.lu@intel.com>
Tested-by: Yuan Y Lu <yuan.y.lu@intel.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:22:51 +02:00
..
2023-09-19 12:22:47 +02:00
2023-08-03 10:22:26 +02:00
2023-07-23 13:47:51 +02:00
2023-07-23 13:47:25 +02:00
2023-09-19 12:22:48 +02:00
2023-07-23 13:47:20 +02:00