diff options
author | till straumann <till.straumann@alumni.tu-berlin.de> | 2021-03-10 21:28:41 +0100 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-03-17 13:11:49 -0600 |
commit | 765f0491ef67c97253b61cb276c8872f4478f060 (patch) | |
tree | e0121ae1f94e1e931c2b51eeacad3d33bd8139c8 | |
parent | 8012705e9e9096e69cf1d64441c252b7d30deccc (diff) |
mv643xx_eth_bsdnet.c: minor cleanup
Update #4344
-rw-r--r-- | bsps/powerpc/beatnik/net/if_mve/mv643xx_eth_bsdnet.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth_bsdnet.c b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth_bsdnet.c index f8400c9f13..0f2a97d49a 100644 --- a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth_bsdnet.c +++ b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth_bsdnet.c @@ -168,9 +168,6 @@ * chains that are longer than the ring size. Normally, this is * disabled for sake of speed. * I observed chains of >17 entries regularly! - * - * Also, TX_NUM_TAG_SLOTS (1) must be left empty as a marker, hence - * the ring size must be > max. #frags + 1. */ #define MV643XX_TX_RING_SIZE 200 /* these are smaller fragments and not occupied when * the driver is idle. @@ -207,7 +204,6 @@ #if PPC_CACHE_ALIGMENT != 16 && PPC_CACHE_ALIGNMENT != 32 #error "Cache line size must be 16 or 32" #else -#define RING_ALIGNMENT PPC_CACHE_ALIGNMENT #define RX_BUF_ALIGNMENT PPC_CACHE_ALIGNMENT #endif @@ -951,7 +947,7 @@ int avail; } } /* free tx chain */ - if ( (MV643XX_ETH_EXT_IRQ_TX_DONE & x) && (avail = BSP_mve_swipe_tx(sc->pvt)) > 0 ) { + if ( (MV643XX_ETH_EXT_IRQ_TX_DONE & x) && ((avail = BSP_mve_swipe_tx(sc->pvt)) > 0) ) { ifp->if_flags &= ~IFF_OACTIVE; if ( sc->bsd.tx_ring_size == avail ) ifp->if_timer = 0; |