• Jiong Wang's avatar
    bpf: unify main prog and subprog · f910cefa
    Jiong Wang authored
    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: default avatarJiong Wang <jiong.wang@netronome.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    f910cefa
verifier.c 169 KB