mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
urtwn: use m_get2() in Rx path.
Replace m_getcl() with m_get2(); this fixes 'frame too long' messages for frames, which are longer than MCLBYTES (can be easily triggered when A-MSDU is used). Tested with RTL8188CUS (AP) and RTL8188EU (STA). Approved by: re (marius)
This commit is contained in:
parent
38ab6d8744
commit
1902276e19
1 changed files with 1 additions and 8 deletions
|
|
@ -895,14 +895,7 @@ urtwn_rx_copy_to_mbuf(struct urtwn_softc *sc, struct r92c_rx_stat *stat,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (__predict_false(totlen > MCLBYTES)) {
|
||||
/* convert to m_getjcl if this happens */
|
||||
device_printf(sc->sc_dev, "%s: frame too long: %d (%d)\n",
|
||||
__func__, pktlen, totlen);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
|
||||
m = m_get2(totlen, M_NOWAIT, MT_DATA, M_PKTHDR);
|
||||
if (__predict_false(m == NULL)) {
|
||||
device_printf(sc->sc_dev, "%s: could not allocate RX mbuf\n",
|
||||
__func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue