Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip one more segment can be queued, from F...
details: https://anonhg.NetBSD.org/src/rev/60085f09b52a
branches: trunk
changeset: 335551:60085f09b52a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Jan 13 10:36:15 2015 +0000
description:
one more segment can be queued, from FUKAUMI Naoki <naobsd%gmail.com@localhost>
diffstat:
sys/arch/arm/rockchip/rockchip_emac.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7ba3f8f7c217 -r 60085f09b52a sys/arch/arm/rockchip/rockchip_emac.c
--- a/sys/arch/arm/rockchip/rockchip_emac.c Tue Jan 13 09:14:57 2015 +0000
+++ b/sys/arch/arm/rockchip/rockchip_emac.c Tue Jan 13 10:36:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rockchip_emac.c,v 1.9 2015/01/08 14:17:42 jmcneill Exp $ */
+/* $NetBSD: rockchip_emac.c,v 1.10 2015/01/13 10:36:15 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_rkemac.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.9 2015/01/08 14:17:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.10 2015/01/13 10:36:15 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -701,7 +701,7 @@
const u_int nbufs = map->dm_nsegs +
((m0->m_pkthdr.len < ETHER_MIN_LEN) ? 1 : 0);
- if (sc->sc_txq.t_queued + nbufs >= RKEMAC_TX_RING_COUNT) {
+ if (sc->sc_txq.t_queued + nbufs > RKEMAC_TX_RING_COUNT) {
bus_dmamap_unload(sc->sc_dmat, map);
return ENOBUFS;
}
Home |
Main Index |
Thread Index |
Old Index