Re: [patch V3 10/22] bpf: Provide bpf_prog_run_pin_on_cpu() helper

From: Thomas Gleixner
Date: Mon Feb 24 2020 - 13:14:52 EST


Thomas Gleixner <tglx@xxxxxxxxxxxxx> writes:
> + * preempt_disable/enable(), i.e. it disables also preemption.
> + */
> +static inline u32 bpf_prog_run_pin_on_cpu(const struct bpf_prog *prog,
> + void *ctx)

I'm a moron. Let me resend this one.

> +{
> + u32 ret;
> +
> + migrate_disable();
> + ret = __BPF_PROG_RUN(prog, ctx, bpf_dispatcher_nopfunc);
> + migrate_enable();
> + return ret;
> +}
>
> #define BPF_SKB_CB_LEN QDISC_CB_PRIV_LEN
>