# HG changeset patch # User gthomas # Date 1075904095 0 # Node ID dc0016c597aa68755689947799185c566236c713 # Parent 111c2191e6f57443cadbbe4fd68b8f6e53fec04c Better handling of Tx packets - from Christoph Csebits diff --git a/packages/devs/eth/powerpc/fcc/current/ChangeLog b/packages/devs/eth/powerpc/fcc/current/ChangeLog --- a/packages/devs/eth/powerpc/fcc/current/ChangeLog +++ b/packages/devs/eth/powerpc/fcc/current/ChangeLog @@ -1,3 +1,8 @@ +2004-02-03 Christoph Csebits + + * src/if_fcc.c (fcc_eth_can_send): Fix: check also if + buffer was freed by the upper layer (txdone was called). + 2003-11-07 Gary Thomas * src/if_fcc.c (fcc_eth_init): Improve messages, add device name. diff --git a/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c b/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c --- a/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c +++ b/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c @@ -413,7 +413,7 @@ fcc_eth_can_send(struct eth_drv_sc *sc) } #endif - return ((txbd->ctrl & FCC_BD_Tx_Ready) == 0); + return ((txbd->ctrl & (FCC_BD_Tx_TC | FCC_BD_Tx_Ready)) == 0); } // diff --git a/packages/devs/eth/powerpc/quicc2/current/ChangeLog b/packages/devs/eth/powerpc/quicc2/current/ChangeLog --- a/packages/devs/eth/powerpc/quicc2/current/ChangeLog +++ b/packages/devs/eth/powerpc/quicc2/current/ChangeLog @@ -1,3 +1,8 @@ +2004-02-03 Christoph Csebits + + * src/if_fcc.c (fcc_eth_can_send): Fix: check also if + buffer was freed by the upper layer (txdone was called). + 2003-03-04 Paul Fine * src/EnetPHY.c : Added PHY reset function for the ts6 platform. diff --git a/packages/devs/eth/powerpc/quicc2/current/src/if_fec.c b/packages/devs/eth/powerpc/quicc2/current/src/if_fec.c --- a/packages/devs/eth/powerpc/quicc2/current/src/if_fec.c +++ b/packages/devs/eth/powerpc/quicc2/current/src/if_fec.c @@ -476,7 +476,7 @@ fec_eth_can_send(struct eth_drv_sc *sc) } #endif - return ((txbd->ctrl & FEC_BD_Tx_Ready) == 0); + return ((txbd->ctrl & (FCC_BD_Tx_TC | FCC_BD_Tx_Ready)) == 0); } //