iproute2: cake: support new overhead reporting & stats structures
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 22 Mar 2018 11:43:05 +0000 (11:43 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 23 Mar 2018 21:08:22 +0000 (22:08 +0100)
commit4a788fcf63920769be3428d5c61eaa6f09d5291a
treeca058fc94ebfa157bdb7a898fcd25bbc34f04826
parentc9154c270a147dd92617e6ae3b07e56da68489aa
iproute2: cake: support new overhead reporting & stats structures

Cake in kernel space now splits stats structure handling across netlink
messages to reduce stack usage issue flagged by upstream kernel checks.
Update user space (tc) qdisc handling to understand this new regime.

Cake also reports packet overheads & compensation in a different way so
add display code for this. e.g.

'tc -s qdisc show dev eth0' reports this extra detail:

 min/max transport layer size:         28 /    1500
 min/max overhead-adjusted size:       65 /    1550
 average transport hdr offset:         14

Cake also supports output in JSON format.

Patch is bulkier than before because a (slightly out of date - see above
stats) man page is included for reference. Better than nothing!

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
package/network/utils/iproute2/patches/950-add-cake-to-tc.patch