.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "MC32_RX_RING" "" "06 October 2005" "" ""
.SH NAME
mc32_rx_ring \- process the receive ring
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void mc32_rx_ring (struct net_device * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
3c527 that needs its receive ring processing
.SH "DESCRIPTION"
.PP
.PP
We have received one or more indications from the card that a
receive has completed. The buffer ring thus contains dirty
entries. We walk the ring by iterating over the circular rx_ring
array, starting at the next dirty buffer (which happens to be the
one we finished up at last time around).
.PP
For each completed packet, we will either copy it and pass it up
the stack or, if the packet is near MTU sized, we allocate
another buffer and flip the old one up the stack.
.PP
We must succeed in keeping a buffer on the ring. If necessary we
will toss a received packet rather than lose a ring entry. Once
the first uncompleted descriptor is found, we move the
End-Of-List bit to include the buffers just processed.