Changeset 10fca44 in rtems


Ignore:
Timestamp:
Jan 21, 2009, 6:18:19 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
0e2f369
Parents:
3a7df18
Message:

2009-01-21 Frank Ueberschar <frank.ueberschar@…>

PR 1354/bsps

  • network/network.c: In some cases it can occur that an empty mbuf is put on the descriptor chain. (We found it especially then when transmitting fragmented IP Packets.) Since the actual buffer descriptor pointer will be incremented after every inserted mbuf (txBd = sc->txBdBase + sc->txBdHead;) even if m->m_len of the current mbuf was zero. This leads to the bug.
Location:
c/src/lib/libbsp/m68k/av5282
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/av5282/ChangeLog

    r3a7df18 r10fca44  
     12009-01-21      Frank Ueberschar <frank.ueberschar@dsa-volgmann.de>
     2
     3        PR 1354/bsps
     4        * network/network.c: In some cases it can occur that an empty mbuf is
     5        put on the descriptor chain. (We found it especially then when
     6        transmitting fragmented IP Packets.) Since the actual buffer
     7        descriptor pointer will be incremented after every inserted mbuf
     8        (txBd = sc->txBdBase + sc->txBdHead;) even if m->m_len of the current
     9        mbuf was zero. This leads to the bug.
     10
    1112008-12-08      Ralf Corsépius <ralf.corsepius@rtems.org>
    212
  • c/src/lib/libbsp/m68k/av5282/network/network.c

    r3a7df18 r10fca44  
    549549                * can produce fragments with zero length.
    550550                */
    551                 txBd = sc->txBdBase + sc->txBdHead;
    552551                if (m->m_len){
    553552                        char *p = mtod(m, char *);
    554553                        int offset = (int) p & 0x3;
     554                        txBd = sc->txBdBase + sc->txBdHead;
    555555                        if (offset == 0) {
    556556                                txBd->buffer = p;
Note: See TracChangeset for help on using the changeset viewer.