svn commit: r207167 - user/jmallett/octeon/sys/mips/cavium/octe
Juli Mallett
jmallett at FreeBSD.org
Sat Apr 24 22:23:50 UTC 2010
Author: jmallett
Date: Sat Apr 24 22:23:49 2010
New Revision: 207167
URL: http://svn.freebsd.org/changeset/base/207167
Log:
o) Return nonzero if we drop the outgoing packet.
o) Do not continue trying to transmit packets if we drop a packet outgoing.
Modified:
user/jmallett/octeon/sys/mips/cavium/octe/ethernet-tx.c
user/jmallett/octeon/sys/mips/cavium/octe/octe.c
Modified: user/jmallett/octeon/sys/mips/cavium/octe/ethernet-tx.c
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/octe/ethernet-tx.c Sat Apr 24 22:16:01 2010 (r207166)
+++ user/jmallett/octeon/sys/mips/cavium/octe/ethernet-tx.c Sat Apr 24 22:23:49 2010 (r207167)
@@ -322,7 +322,7 @@ dont_put_mbuf_in_hw:
IF_UNLOCK(&priv->tx_free_queue[qos]);
}
- return 0;
+ return dropped;
}
Modified: user/jmallett/octeon/sys/mips/cavium/octe/octe.c
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/octe/octe.c Sat Apr 24 22:16:01 2010 (r207166)
+++ user/jmallett/octeon/sys/mips/cavium/octe/octe.c Sat Apr 24 22:23:49 2010 (r207167)
@@ -278,6 +278,7 @@ octe_start(struct ifnet *ifp)
* not free the packets?
*/
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
+ return;
}
BPF_MTAP(ifp, m);
More information about the svn-src-user
mailing list