]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_ntb: MFV 2849b5d7: Reset transport QP link stats on down
authorConrad Meyer <cem@FreeBSD.org>
Tue, 20 Oct 2015 01:54:16 +0000 (01:54 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Tue, 20 Oct 2015 01:54:16 +0000 (01:54 +0000)
commit25ff5df7c4a45a988b251dd78d3e04567265c08b
treeff1ef07c0856e75fdc0836f0ddc753ede012305c
parent0326e4d6b5f641f5cf0784891b994acd70022c97
if_ntb: MFV 2849b5d7: 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.

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division
sys/dev/ntb/if_ntb/if_ntb.c