RX_OSM_HANDLER
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
rx_osm_handler - To perform some OS related operations on SKB.
SYNOPSIS
"SYNOPSIS"
int rx_osm_handler (nic_t * sp, u16 len, RxD_t * rxdp, int ring_no);
ARGUMENTS
- sp
-
private member of the device structure,pointer to s2io_nic structure.
- len
-
length of the packet
- rxdp
-
-- undescribed --
- ring_no
-
the ring from which this RxD was extracted.
DESCRIPTION
This function is called by the Tx interrupt serivce routine to perform
some OS related operations on the SKB before passing it to the upper
layers. It mainly checks if the checksum is OK, if so adds it to the
SKBs cksum variable, increments the Rx packet count and passes the SKB
to the upper layer. If the checksum is wrong, it increments the Rx
packet error count, frees the SKB and returns error.
RETURN VALUE
SUCCESS on success and -1 on failure.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- RETURN VALUE
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:43 GMT, October 09, 2005