NTB: Out of free receive entries issue
authorJon Mason <jon.mason@intel.com>
Sat, 19 Jan 2013 09:02:27 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:45:52 +0000 (15:45 -0800)
commit448c6fb3a39bf4d0b644f5b942b7aa9473b0f597
tree4575fcc4198203712ac08eb7f4c9f66f49828754
parent793c20e9c924e6bc91bc9b1c98e2f6b8e1bf2fae
NTB: Out of free receive entries issue

If the NTB client driver enqueues the maximum number of rx buffers, it
will not be able to re-enqueue another in its callback handler due to a
lack of free entries.  This can be avoided by adding the current entry
to the free queue prior to calling the client callback handler.  With
this change, ntb_netdev will no longer encounter a rx error on its first
packet.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c