/* Transmit-side routines. Called to do any work queued up on the transmit side that can now be done.  */
static void ppp_xmit_process(struct ppp *ppp)
/* Transmit-side routines. Called to do any work queued up on the transmit side that can now be done.  */
static void ppp_xmit_process(struct ppp *ppp)
{
	struct sk_buff *skb;
	ppp_xmit_lock(ppp);
	if (!ppp->closing) {
		ppp_push(ppp);
		while (!ppp->xmit_pending &&
		       (skb = skb_dequeue(&ppp->file.xq)))
			ppp_send_frame(ppp, skb);
		if (!ppp->xmit_pending && !skb_peek(&ppp->file.xq))
			netif_wake_queue(ppp->dev);
	}
	ppp_xmit_unlock(ppp);
}