]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: consolidate offload decision in cls_u32
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 26 Feb 2016 15:53:49 +0000 (07:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:05:39 +0000 (16:05 -0500)
commit1df86b60f89c1e06c5e045756fc8cc98686907df
tree6ce0e74043e12f755c5bba0174d2f2c5e7cb5544
parentd04477d94bd56bf476c96bc18d550e8ae9c22a6a
net: sched: consolidate offload decision in cls_u32

The offload decision was originally very basic and tied to if the dev
implemented the appropriate ndo op hook. The next step is to allow
the user to more flexibly define if any paticular rule should be
offloaded or not. In order to have this logic in one function lift
the current check into a helper routine tc_should_offload().

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/cls_u32.c