Occasionally packets are too fragmented to fit into the maximum number of
requests allowed by the netif protocol. In this case the packet preparation
function will fail with STATUS_BUFFER_OVERFLOW and the alternative copy-
coalesce prepation function will be called. These error messages are
therefore un-interesting (since the number of packets directly granted vs.
those that were copied is available in the statistics dump initiated by the
debug VIRQ).
This patch squashes the error messages to avoid filling logs.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
fail3:
fail2:
- Error("fail2\n");
+ if (status != STATUS_BUFFER_OVERFLOW)
+ Error("fail2\n");
if (Fragment != NULL) {
ASSERT3P(Fragment->Context, ==, Packet);
}
fail1:
- Error("fail1 (%08x)\n", status);
+ if (status != STATUS_BUFFER_OVERFLOW)
+ Error("fail1 (%08x)\n", status);
ASSERT3P(Fragment, ==, NULL);