diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2018-02-13 07:47:14 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2018-08-24 15:51:39 +0200 |
commit | 2fbe2ef3ea36bdda05cb83e58ef2bacc1ebe6a59 (patch) | |
tree | 08933dac4bc6fa6875d9cefee74f4837317e1899 /bsps | |
parent | sparc,smp: typo in start.S causing SMP not working (diff) | |
download | rtems-2fbe2ef3ea36bdda05cb83e58ef2bacc1ebe6a59.tar.bz2 |
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.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/sparc/shared/net/greth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bsps/sparc/shared/net/greth.c b/bsps/sparc/shared/net/greth.c index eafcb9947a..b2d2569b10 100644 --- a/bsps/sparc/shared/net/greth.c +++ b/bsps/sparc/shared/net/greth.c @@ -868,23 +868,23 @@ sendpacket (struct ifnet *ifp, struct mbuf *m) if ((m = m->m_next) == NULL) break; } - + m_freem (n); - + /* don't send long packets */ if (len <= GRETH_MAXBUF_LEN) { if (dp->tx_ptr < dp->txbufs-1) { - dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_ENABLE | len; + dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_IRQ | + GRETH_TXD_ENABLE | len; } else { - dp->txdesc[dp->tx_ptr].ctrl = + dp->txdesc[dp->tx_ptr].ctrl = GRETH_TXD_IRQ | GRETH_TXD_WRAP | GRETH_TXD_ENABLE | len; } dp->tx_ptr = (dp->tx_ptr + 1) % dp->txbufs; SPIN_LOCK_IRQ(&dp->devlock, flags); dp->regs->ctrl = dp->regs->ctrl | GRETH_CTRL_TXEN; SPIN_UNLOCK_IRQ(&dp->devlock, flags); - } return 0; |