OSDN Git Service

net/sched: add retpoline wrapper for tc
authorPedro Tammela <pctammela@mojatatu.com>
Tue, 6 Dec 2022 13:55:11 +0000 (10:55 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2022 09:18:07 +0000 (09:18 +0000)
commit7f0e810220e2d985338ecdd907c1598404db251d
treef02d70b80dee3335c3672c3188a0ae9136c72e67
parent2a7d228f1ae78b6eabef5f18bd1a8d2280555628
net/sched: add retpoline wrapper for tc

On kernels using retpoline as a spectrev2 mitigation,
optimize actions and filters that are compiled as built-ins into a direct call.

On subsequent patches we expose the classifiers and actions functions
and wire up the wrapper into tc.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_wrapper.h [new file with mode: 0644]
net/sched/sch_api.c