rtl8188eu: Remove CONFIG_PREALLOC_RECV_SKB - defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-21 22:19:31 -05:00
parent c8327a9118
commit 89aeab9b41
3 changed files with 2 additions and 30 deletions

View file

@ -99,7 +99,6 @@ int rtl8188eu_init_recv_priv(_adapter *padapter)
precvpriv->free_recv_buf_queue_cnt = NR_RECVBUFF;
skb_queue_head_init(&precvpriv->rx_skb_queue);
#ifdef CONFIG_PREALLOC_RECV_SKB
{
int i;
SIZE_PTR tmpaddr=0;
@ -132,7 +131,6 @@ int rtl8188eu_init_recv_priv(_adapter *padapter)
}
}
#endif
exit:
@ -161,11 +159,9 @@ void rtl8188eu_free_recv_priv (_adapter *padapter)
DBG_88E(KERN_WARNING "rx_skb_queue not empty\n");
skb_queue_purge(&precvpriv->rx_skb_queue);
#ifdef CONFIG_PREALLOC_RECV_SKB
if (skb_queue_len(&precvpriv->free_recv_skb_queue))
DBG_88E(KERN_WARNING "free_recv_skb_queue not empty, %d\n", skb_queue_len(&precvpriv->free_recv_skb_queue));
skb_queue_purge(&precvpriv->free_recv_skb_queue);
#endif
}

View file

@ -578,23 +578,15 @@ void rtl8188eu_recv_tasklet(void *priv)
recvbuf2recvframe(padapter, pskb);
#ifdef CONFIG_PREALLOC_RECV_SKB
skb_reset_tail_pointer(pskb);
pskb->len = 0;
skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb);
#else
dev_kfree_skb_any(pskb);
#endif
}
}
static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
{
_irqL irqL;
@ -611,14 +603,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
{
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)\n", padapter->bDriverStopped, padapter->bSurpriseRemoved));
#ifdef CONFIG_PREALLOC_RECV_SKB
precvbuf->reuse = true;
#else
if (precvbuf->pskb){
DBG_88E("==> free skb(%p)\n",precvbuf->pskb);
dev_kfree_skb_any(precvbuf->pskb);
}
#endif
DBG_88E("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
__func__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel);
goto exit;
@ -711,22 +696,15 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
_func_enter_;
if (adapter->bDriverStopped || adapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)
{
if (adapter->bDriverStopped || adapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx) {
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port:( padapter->bDriverStopped ||padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
return _FAIL;
}
#ifdef CONFIG_PREALLOC_RECV_SKB
if ((precvbuf->reuse == false) || (precvbuf->pskb == NULL))
{
if ((precvbuf->reuse == false) || (precvbuf->pskb == NULL)) {
if (NULL != (precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue)))
{
precvbuf->reuse = true;
}
}
#endif
if (precvbuf !=NULL)
{

View file

@ -52,8 +52,6 @@
* Interface Related Config
*/
#define CONFIG_PREALLOC_RECV_SKB
#define CONFIG_VENDOR_REQ_RETRY
/*