Files
ubports_kernel_google_msm/include/linux
Eric Dumazet 18cb809850 net_sched: sfq: extend limits
SFQ as implemented in Linux is very limited, with at most 127 flows
and limit of 127 packets. [ So if 127 flows are active, we have one
packet per flow ]

This patch brings to SFQ following features to cope with modern needs.

- Ability to specify a smaller per flow limit of inflight packets.
    (default value being at 127 packets)

- Ability to have up to 65408 active flows (instead of 127)

- Ability to have head drops instead of tail drops
  (to drop old packets from a flow)

Example of use : No more than 20 packets per flow, max 8000 flows, max
20000 packets in SFQ qdisc, hash table of 65536 slots.

tc qdisc add ... sfq \
        flows 8000 \
        depth 20 \
        headdrop \
        limit 20000 \
	divisor 65536

Ram usage :

2 bytes per hash table entry (instead of previous 1 byte/entry)
32 bytes per flow on 64bit arches, instead of 384 for QFQ, so much
better cache hit ratio.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Dave Taht <dave.taht@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-05 14:01:21 -05:00
..
2011-12-11 18:25:16 -05:00
2011-11-07 09:11:16 -08:00
2011-12-13 15:30:49 -05:00
2011-12-11 18:25:16 -05:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:25 -04:00
2011-11-16 09:21:50 +01:00
2011-09-27 09:25:02 +01:00
2011-11-07 23:54:53 +01:00
2011-10-31 20:19:04 +00:00
2011-11-26 14:59:39 -05:00
2011-12-11 18:25:16 -05:00
2011-11-23 11:33:07 +01:00
2011-11-16 18:16:38 -05:00
2011-11-13 16:10:10 -05:00
2011-12-11 18:25:16 -05:00
2011-09-27 18:08:04 +02:00
2011-09-25 19:52:59 +03:00
2011-11-02 16:06:57 -07:00
2011-11-14 00:47:54 -05:00
2011-10-31 14:03:22 +01:00
2012-01-05 14:01:21 -05:00
2011-11-02 16:07:02 -07:00
2011-11-29 11:59:50 +00:00
2011-10-31 17:30:47 -07:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-11-02 16:07:02 -07:00