From: David Vrabel Date: Thu, 31 Jul 2014 16:38:23 +0000 (+0100) Subject: xen-netfront: release per-queue Tx and Rx resource when disconnecting X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2^2~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b5dc3ce4df4f05f4d81c7d3c56a7604b242093;p=pandora-kernel.git xen-netfront: release per-queue Tx and Rx resource when disconnecting Since netfront may reconnect to a backend with a different number of queues, all per-queue Rx and Tx resources (skbs and grant references) should be freed when disconnecting. Without this fix, the Tx and Rx grant refs are not released and netfront will exhaust them after only a few reconnections. netfront will fail to connect when no free grant references are available. Since all Rx bufs are freed and reallocated instead of reused this will add some additional delay to the reconnection but this is expected to be small compared to the time taken by any backend hotplug scripts etc. Signed-off-by: David Vrabel Signed-off-by: David S. Miller --- Reading git-diff-tree failed