FILL_RX_BUFFERS

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

fill_rx_buffers - Allocates the Rx side skbs  

SYNOPSIS

"SYNOPSIS"

int fill_rx_buffers (struct s2io_nic * nic, int ring_no);  

ARGUMENTS

nic
device private variable
ring_no
ring number
 

DESCRIPTION

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.  

RETURN VALUE

SUCCESS on success or an appropriate -ve value on failure.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 00:02:09 GMT, October 09, 2005