net: sched: cls_flower: implement chain templates
authorJiri Pirko <jiri@mellanox.com>
Mon, 23 Jul 2018 07:23:10 +0000 (09:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2018 03:44:12 +0000 (20:44 -0700)
commitb95ec7eb3b4d2f158dd15c912cf670b546f09571
treefb26f4466a773d4a171a36e72f0944ae37017f0f
parent33fb5cba11ff639c32f4f0104b04b2415fcd9ecc
net: sched: cls_flower: implement chain templates

Use the previously introduced template extension and implement
callback to create, destroy and dump chain template. The existing
parsing and dumping functions are re-used. Also, check if newly added
filters fit the template if it is set.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c