mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 15:39:38 +00:00
rtl8188eu: Remove CONFIG_BSD_RX_USE_MBUF
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3e42cc02e2
commit
bb4b1fe327
2 changed files with 2 additions and 14 deletions
|
@ -215,13 +215,8 @@ int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue)
|
||||||
struct adapter *padapter=precvframe->u.hdr.adapter;
|
struct adapter *padapter=precvframe->u.hdr.adapter;
|
||||||
struct recv_priv *precvpriv = &padapter->recvpriv;
|
struct recv_priv *precvpriv = &padapter->recvpriv;
|
||||||
|
|
||||||
if(precvframe->u.hdr.pkt)
|
if(precvframe->u.hdr.pkt) {
|
||||||
{
|
|
||||||
#ifdef CONFIG_BSD_RX_USE_MBUF
|
|
||||||
m_freem(precvframe->u.hdr.pkt);
|
|
||||||
#else /* CONFIG_BSD_RX_USE_MBUF */
|
|
||||||
rtw_skb_free(precvframe->u.hdr.pkt);/* free skb by driver */
|
rtw_skb_free(precvframe->u.hdr.pkt);/* free skb by driver */
|
||||||
#endif /* CONFIG_BSD_RX_USE_MBUF */
|
|
||||||
precvframe->u.hdr.pkt = NULL;
|
precvframe->u.hdr.pkt = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -329,17 +329,10 @@ struct recv_buf
|
||||||
len = (unsigned int )(tail - data);
|
len = (unsigned int )(tail - data);
|
||||||
|
|
||||||
*/
|
*/
|
||||||
struct recv_frame_hdr
|
struct recv_frame_hdr {
|
||||||
{
|
|
||||||
_list list;
|
_list list;
|
||||||
#ifndef CONFIG_BSD_RX_USE_MBUF
|
|
||||||
struct sk_buff *pkt;
|
struct sk_buff *pkt;
|
||||||
struct sk_buff *pkt_newalloc;
|
struct sk_buff *pkt_newalloc;
|
||||||
#else // CONFIG_BSD_RX_USE_MBUF
|
|
||||||
_pkt *pkt;
|
|
||||||
_pkt *pkt_newalloc;
|
|
||||||
#endif // CONFIG_BSD_RX_USE_MBUF
|
|
||||||
|
|
||||||
struct adapter *adapter;
|
struct adapter *adapter;
|
||||||
|
|
||||||
u8 fragcnt;
|
u8 fragcnt;
|
||||||
|
|
Loading…
Reference in a new issue