Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NAPI context.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Thursday, March 26, 2009 - 7:15 am

Joakim Tjernlund a écrit :


Not related to your patch, but seeing above code, I can understand
you might have a problem in flood situation : Only first queue(s) are
depleted, and last one cannot be because howmany >= budget.

This driver might have to remember last queue it handled at previous
call ucc_geth_poll(), so that all rxqueues have same probability to be scanned.

j = ug->lastslot;
for (i = 0; ug_info->numQueuesRx; i++) {
	if (++j >= ug_info->numQueuesRx)
		j = 0;
	howmany += ucc_geth_rx(ugeth, j, budget - howmany);
	if (howmany >= budget)
		break;
}
ug->lastslot = j;




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Thu Mar 26, 5:54 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., Anton Vorontsov, (Thu Mar 26, 6:39 am)
Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NA ..., Eric Dumazet, (Thu Mar 26, 7:15 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Thu Mar 26, 9:43 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., Anton Vorontsov, (Thu Mar 26, 11:05 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Thu Mar 26, 11:20 am)
[RFC] niu: RX queues should rotate if budget exhausted, Eric Dumazet, (Thu Mar 26, 11:26 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., David Miller, (Fri Mar 27, 12:42 am)
Re: [PATCH 2/2] ucc_geth: Rework the TX logic., Joakim Tjernlund, (Fri Mar 27, 2:37 am)
Re: [PATCH 1/2] ucc_geth: Move freeing of TX packets to NA ..., Joakim Tjernlund, (Mon Mar 30, 12:48 am)