lkml.org 
[lkml]   [2020]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch V3 10/22] bpf: Provide bpf_prog_run_pin_on_cpu() helper
Date
Thomas Gleixner <tglx@linutronix.de> 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
>

\
 
 \ /
  Last update: 2020-02-24 19:15    [W:0.080 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site