net: sched: pie: enable timestamp based delay calculation
authorGautam Ramakrishnan <gautamramk@gmail.com>
Wed, 20 Nov 2019 14:13:54 +0000 (19:43 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 20:31:45 +0000 (12:31 -0800)
commitcec2975f2b7058c42330a0f8164d94c6b7c8c446
tree118b8b42bde81f21c0b79abf1c7d073d9043cd6a
parentf01b437d1297f14a366c02427f7c07260ec1345b
net: sched: pie: enable timestamp based delay calculation

RFC 8033 suggests an alternative approach to calculate the queue
delay in PIE by using a timestamp on every enqueued packet. This
patch adds an implementation of that approach and sets it as the
default method to calculate queue delay. The previous method (based
on Little's law) to calculate queue delay is set as optional.

Signed-off-by: Gautam Ramakrishnan <gautamramk@gmail.com>
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: Mohit P. Tahiliani <tahiliani@nitk.edu.in>
Acked-by: Dave Taht <dave.taht@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h
net/sched/sch_pie.c