dir600b_v2.03/kernels/rt305x/drivers/net/ppp_generic.c
/*
 * Insert a fragment on the MP reconstruction queue.
 * The queue is ordered by increasing sequence number.
 */
Insert a fragment on the MP reconstruction queue.
The queue is ordered by increasing sequence number.
Insert a fragment on the MP reconstruction queue . The queue is ordered by increasing sequence number .
static void
ppp_mp_insert(struct ppp *ppp, struct sk_buff *skb)
{
	struct sk_buff *p;
	struct sk_buff_head *list = &ppp->mrq;
	u32 seq = skb->sequence;
	for (p = list->next; p != (struct sk_buff *)list; p = p->next)
		if (seq_before(seq, p->sequence))
			break;
	__skb_insert(skb, p->prev, p, list);
}
static void ppp_mp_insert ( struct ppp * ppp , struct sk_buff * skb ) { struct sk_buff * p ; struct sk_buff_head * list = & ppp -> mrq ; u32 seq = skb -> sequence ; for ( p = list -> next ; p != ( struct sk_buff * ) list ; p = p -> next ) if ( seq_before ( seq , p -> sequence ) ) break ; __skb_insert ( skb , p -> prev , p , list ) ; }
Insert a fragment on the MP reconstruction queue.
Insert a fragment on the MP reconstruction queue .
/* N.B. we don't need to lock the list lock because we have the
	   ppp unit receive-side lock. */