View | Details | Raw Unified | Return to bug 235700 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/oce/oce_if.c (-6 / +4 lines)
Lines 2378-2385 oce_eqd_set_periodic(POCE_SOFTC sc) Link Here
2378
	uint64_t now = 0, delta;
2378
	uint64_t now = 0, delta;
2379
	int eqd, i, num = 0;
2379
	int eqd, i, num = 0;
2380
	uint32_t tx_reqs = 0, rxpkts = 0, pps;
2380
	uint32_t tx_reqs = 0, rxpkts = 0, pps;
2381
	struct oce_wq *wq;
2382
	struct oce_rq *rq;
2383
2381
2384
	#define ticks_to_msecs(t)       (1000 * (t) / hz)
2382
	#define ticks_to_msecs(t)       (1000 * (t) / hz)
2385
2383
Lines 2394-2403 oce_eqd_set_periodic(POCE_SOFTC sc) Link Here
2394
			goto modify_eqd;
2392
			goto modify_eqd;
2395
		}
2393
		}
2396
2394
2397
		rq = sc->rq[i];
2395
		if (i < sc->nrqs)
2398
		rxpkts = rq->rx_stats.rx_pkts;
2396
			rxpkts = sc->rq[i]->rx_stats.rx_pkts;
2399
		wq = sc->wq[i];
2397
		if (i < sc->nwqs)
2400
		tx_reqs = wq->tx_stats.tx_reqs;
2398
			tx_reqs = sc->wq[i]->tx_stats.tx_reqs;
2401
		now = ticks;
2399
		now = ticks;
2402
2400
2403
		if (!aic->ticks || now < aic->ticks ||
2401
		if (!aic->ticks || now < aic->ticks ||

Return to bug 235700