From 6464281161e46254ac39505ad41d21dbe7d1738f Mon Sep 17 00:00:00 2001 From: Sathya Perla Date: Wed, 1 Dec 2010 01:04:17 +0000 Subject: [PATCH] be2net: Handle out of buffer completions for lancer If Lancer chip does not have posted RX buffers, it posts an RX completion entry with the same frag_index as the last valid completion. The Error bit is also set. In BE, a flush completion is indicated with a zero value for num_rcvd in the completion. Such completions don't carry any data and are not processed. This patch refactors code to handle both cases with the same code. Signed-off-by: Padmanabh Ratnakar Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-format-patch failed