]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: Enable tc skb ext allocation on chain miss only when needed
authorPaul Blakey <paulb@nvidia.com>
Thu, 3 Feb 2022 08:44:30 +0000 (10:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Feb 2022 10:12:53 +0000 (10:12 +0000)
commit38419ad27b071c68ea9a8515558d1daf415ff332
tree034d55a6ff7a088c066b6e9e50551ad508368669
parent380d602b6572201221bb6ff61f6615f5bd0ce342
net/sched: Enable tc skb ext allocation on chain miss only when needed

Currently tc skb extension is used to send miss info from
tc to ovs datapath module, and driver to tc. For the tc to ovs
miss it is currently always allocated even if it will not
be used by ovs datapath (as it depends on a requested feature).

Export the static key which is used by openvswitch module to
guard this code path as well, so it will be skipped if ovs
datapath doesn't need it. Enable this code path once
ovs datapath needs it.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/openvswitch/datapath.c
net/openvswitch/datapath.h
net/openvswitch/flow.c
net/sched/cls_api.c