Changeset f9d4e1d in rtems-libbsd


Ignore:
Timestamp:
Oct 4, 2018, 12:10:10 PM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
Children:
1e77a45
Parents:
2eae88b
git-author:
Sebastian Huber <sebastian.huber@…> (10/04/18 12:10:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/04/18 12:12:56)
Message:

rtwn: Align mbuf to avoid realignment in rx path

See ieee80211_realign().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/rtwn/usb/rtwn_usb_rx.c

    r2eae88b rf9d4e1d  
    129129                goto fail;
    130130
     131#ifndef __rtems__
    131132        m = m_get2(totlen, M_NOWAIT, MT_DATA, M_PKTHDR);
     133#else /* __rtems__ */
     134        m = m_get2(totlen + ETHER_ALIGN, M_NOWAIT, MT_DATA, M_PKTHDR);
     135#endif /* __rtems__ */
    132136        if (__predict_false(m == NULL)) {
    133137                device_printf(sc->sc_dev, "%s: could not allocate RX mbuf\n",
     
    137141
    138142        /* Finalize mbuf. */
     143#ifdef __rtems__
     144        m->m_data += ETHER_ALIGN;
     145#endif /* __rtems__ */
    139146        memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen);
    140147        m->m_pkthdr.len = m->m_len = totlen;
Note: See TracChangeset for help on using the changeset viewer.