'\" t .\" Title: netif_receive_skb .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "NETIF_RECEIVE_SKB" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" netif_receive_skb \- process receive buffer from network .SH "SYNOPSIS" .HP \w'int\ netif_receive_skb('u .BI "int netif_receive_skb(struct\ sk_buff\ *\ " "skb" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 buffer to process .RE .SH "DESCRIPTION" .PP \fBnetif_receive_skb\fR is the main receive data processing function\&. It always succeeds\&. The buffer may be dropped during processing for congestion control or by the protocol layers\&. .PP This function may only be called from softirq context and interrupts should be enabled\&. .PP Return values (usually ignored): NET_RX_SUCCESS: no congestion NET_RX_DROP: packet was dropped .SH "COPYRIGHT" .br