Skip to content
Commit 449b1978 authored by Dave Jiang's avatar Dave Jiang Committed by Greg Kroah-Hartman
Browse files

ntb: Drop packets when qp link is down

commit f195a1a6 upstream.

Currently when the transport receive packets after netdev has closed the
transport returns error and triggers tx errors to be incremented and
carrier to be stopped. There is no reason to return error if the device is
already closed. Drop the packet and return 0.

Fixes: e26a5843

 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Reported-by: default avatarYuan Y Lu <yuan.y.lu@intel.com>
Tested-by: default avatarYuan Y Lu <yuan.y.lu@intel.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e79185c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment