Re: [PATCH] proportional share accept()
From: David S. Miller <hidden>
Date: 2004-02-25 18:12:25
From: David S. Miller <hidden>
Date: 2004-02-25 18:12:25
On Wed, 25 Feb 2004 09:21:16 -0800 Stephen Hemminger [off-list ref] wrote:
Just a cursory question, but would it be possible to just use iptables to classify the packets and assign them to different IP addresses. The the application could manage the priorities by opening two different sockets (bound to different IP addresses) and do the scheduling there?
That's how I would attempt to implement this. I really don't like this idea of putting a pseudo-classifier in the accept queue logic, and an ugly GLOBAL one at that, if anything it ought to be per-socket but even that I don't like.