• J
    bpf: unify main prog and subprog · f910cefa
    Jiong Wang 提交于
    Currently, verifier treat main prog and subprog differently. All subprogs
    detected are kept in env->subprog_starts while main prog is not kept there.
    Instead, main prog is implicitly defined as the prog start at 0.
    
    There is actually no difference between main prog and subprog, it is better
    to unify them, and register all progs detected into env->subprog_starts.
    
    This could also help simplifying some code logic.
    Signed-off-by: NJiong Wang <jiong.wang@netronome.com>
    Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
    f910cefa
verifier.c 169.4 KB