Changeset f9d4e1d in rtems-libbsd


Ignore:
Timestamp:
Oct 4, 2018, 12:10:10 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 7f47f2784138109b8363804c2aecd3d83231ab0f, 089780d2de7014a9c451bbd54cd3bcc64b58dfc7, 66019c3e788605ff63f210a677abd5c8edfb0aa0
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.