net: sched: pie: move common code to pie.h
authorMohit P. Tahiliani <tahiliani@nitk.edu.in>
Wed, 22 Jan 2020 18:22:24 +0000 (23:52 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 10:38:30 +0000 (11:38 +0100)
commit84bf557fb02f5924c109a21a160ffc353d878487
tree2edd1577c1794d8bb4e9932e00e8bccfb4905850
parentfd786fb1d2cad70b9aaba8c73872cbf63262bd58
net: sched: pie: move common code to pie.h

This patch moves macros, structures and small functions common
to PIE and FQ-PIE (to be added in a future commit) from the file
net/sched/sch_pie.c to the header file include/net/pie.h.
All the moved functions are made inline.

Signed-off-by: Mohit P. Tahiliani <tahiliani@nitk.edu.in>
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: Gautam Ramakrishnan <gautamramk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pie.h [new file with mode: 0644]
net/sched/sch_pie.c