Replace deprecated M_DONTWAIT with M_NOWAIT.
This commit is contained in:
parent
1cebfc36ae
commit
1fd048d35f
@ -1145,11 +1145,11 @@ rsu_event_survey(struct rsu_softc *sc, uint8_t *buf, int len)
|
||||
pktlen = sizeof(*wh) + le32toh(bss->ieslen);
|
||||
if (__predict_false(pktlen > MCLBYTES))
|
||||
return;
|
||||
MGETHDR(m, M_DONTWAIT, MT_DATA);
|
||||
MGETHDR(m, M_NOWAIT, MT_DATA);
|
||||
if (__predict_false(m == NULL))
|
||||
return;
|
||||
if (pktlen > MHLEN) {
|
||||
MCLGET(m, M_DONTWAIT);
|
||||
MCLGET(m, M_NOWAIT);
|
||||
if (!(m->m_flags & M_EXT)) {
|
||||
m_free(m);
|
||||
return;
|
||||
@ -1358,13 +1358,13 @@ rsu_rx_frame(struct rsu_softc *sc, uint8_t *buf, int pktlen, int *rssi)
|
||||
DPRINTFN(5, "Rx frame len=%d rate=%d infosz=%d rssi=%d\n",
|
||||
pktlen, rate, infosz, *rssi);
|
||||
|
||||
MGETHDR(m, M_DONTWAIT, MT_DATA);
|
||||
MGETHDR(m, M_NOWAIT, MT_DATA);
|
||||
if (__predict_false(m == NULL)) {
|
||||
ifp->if_ierrors++;
|
||||
return NULL;
|
||||
}
|
||||
if (pktlen > MHLEN) {
|
||||
MCLGET(m, M_DONTWAIT);
|
||||
MCLGET(m, M_NOWAIT);
|
||||
if (__predict_false(!(m->m_flags & M_EXT))) {
|
||||
ifp->if_ierrors++;
|
||||
m_freem(m);
|
||||
|
@ -625,7 +625,7 @@ urtwn_rx_frame(struct urtwn_softc *sc, uint8_t *buf, int pktlen, int *rssi_p)
|
||||
rssi = URTWN_RSSI(rssi);
|
||||
}
|
||||
|
||||
m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
|
||||
m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
|
||||
if (m == NULL) {
|
||||
device_printf(sc->sc_dev, "could not create RX mbuf\n");
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user