NTB: Reset transport QP link stats on down
authorAllen Hubbe <Allen.Hubbe@emc.com>
Tue, 12 May 2015 12:09:15 +0000 (08:09 -0400)
committerJon Mason <jdmason@kudzu.us>
Sat, 4 Jul 2015 18:06:34 +0000 (14:06 -0400)
commit2849b5d70641db76f9b674d00c6d204892c51515
treea1ec2942f8bd258e86dceb4151f974f40506d7c0
parentc0900b33d1c8c24246eaedb9553f078024c332fc
NTB: Reset transport QP link stats on down

Reset the link stats when the link goes down.  In particular, the TX and
RX index and count must be reset, or else the TX side will be sending
packets to the RX side where the RX side is not expecting them.  Reset
all the stats, to be consistent.

Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c