mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
rx mbufs must have a pkthdr; use m_gethdr to populate the rx ring
(and while here correct the mbuf type) Submitted by: Sam Banks <w0lfie@clear.net.nz> MFC after: 1 week
This commit is contained in:
parent
f33dc69dfb
commit
650bd88c74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175695
@ -1041,7 +1041,7 @@ wpi_alloc_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring)
|
||||
for (i = 0; i < WPI_RX_RING_COUNT; i++) {
|
||||
data = &ring->data[i];
|
||||
|
||||
data->m = m_get(M_DONTWAIT, MT_HEADER);
|
||||
data->m = m_gethdr(M_DONTWAIT, MT_DATA);
|
||||
if (data->m == NULL) {
|
||||
device_printf(sc->sc_dev,
|
||||
"could not allocate rx mbuf\n");
|
||||
|
Loading…
Reference in New Issue
Block a user