be2net: Handle error completion in Lancer
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Tue, 10 May 2011 05:12:17 +0000 (05:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2011 23:10:02 +0000 (19:10 -0400)
commit009dd872d753f854cf13c8334e0055092f539b38
treee96485a62c75f4b20f128b40f695ab6e0e82539a
parent3c709f8fb43e07a0403bba4a8ca7ba00ab874994
be2net: Handle error completion in Lancer

In Lancer if a frame is DMAed partially due to lack of RX buffers,
an error completion is sent with packet size as zero and num_recvd
indicating number of used buffers. These buffers need to be freed
and packet dropped.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c