.\" 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 "FILL_RX_BUFFERS" "9" "09 October 2005" "" "" .SH NAME fill_rx_buffers \- Allocates the Rx side skbs .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int fill_rx_buffers (struct s2io_nic * \fInic\fB, int \fIring_no\fB); \fR .SH "ARGUMENTS" .TP \fB\fInic\fB\fR device private variable .TP \fB\fIring_no\fB\fR ring number .SH "DESCRIPTION" .PP The function allocates Rx side skbs and puts the physical address of these buffers into the RxD buffer pointers, so that the NIC can DMA the received frame into these locations. The NIC supports 3 receive modes, viz 1. single buffer, 2. three buffer and 3. Five buffer modes. Each mode defines how many fragments the received frame will be split up into by the NIC. The frame is split into L3 header, L4 Header, L4 payload in three buffer mode and in 5 buffer mode, L4 payload itself is split into 3 fragments. As of now only single buffer mode is supported. .SH "RETURN VALUE" .PP SUCCESS on success or an appropriate -ve value on failure.