Changeset 2fbe2ef3 in rtems for bsps/sparc/shared


Ignore:
Timestamp:
Feb 13, 2018, 6:47:14 AM (2 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
243ddb5
Parents:
a87964d
git-author:
Daniel Hellstrom <daniel@…> (02/13/18 06:47:14)
git-committer:
Daniel Hellstrom <daniel@…> (08/24/18 13:51:39)
Message:

leon, greth: 10/100 MAC enable TX BD interrupt

Missed to enable interrupt per TX descriptor. Could lead to TX buffer
starvation.

Does not affect the GBit code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/net/greth.c

    ra87964d r2fbe2ef3  
    869869                    break;
    870870    }
    871    
     871
    872872    m_freem (n);
    873    
     873
    874874    /* don't send long packets */
    875875
    876876    if (len <= GRETH_MAXBUF_LEN) {
    877877            if (dp->tx_ptr < dp->txbufs-1) {
    878                     dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_ENABLE | len;
     878                    dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_IRQ |
     879                                                  GRETH_TXD_ENABLE | len;
    879880            } else {
    880                     dp->txdesc[dp->tx_ptr].ctrl =
     881                    dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_IRQ |
    881882                            GRETH_TXD_WRAP | GRETH_TXD_ENABLE | len;
    882883            }
     
    885886            dp->regs->ctrl = dp->regs->ctrl | GRETH_CTRL_TXEN;
    886887            SPIN_UNLOCK_IRQ(&dp->devlock, flags);
    887            
    888888    }
    889889
Note: See TracChangeset for help on using the changeset viewer.