]> 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)
commit7b3a508b978de02e8205ac22515e50371d14cc68
tree034d55a6ff7a088c066b6e9e50551ad508368669
parent6a314cd9db816cfa1cc513d50e73983d96bf0134
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