mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cls_bpf: remove gen_flags from bpf_offload
cls_bpf now guarantees that only device-bound programs are allowed with skip_sw. The drivers no longer pay attention to flags on filter load, therefore the bpf_offload member can be removed. If flags are needed again they should probably be added to struct tc_cls_common_offload instead. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
34832e1c70
commit
f558fdea03
2 changed files with 0 additions and 3 deletions
|
|
@ -166,7 +166,6 @@ static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog,
|
|||
cls_bpf.oldprog = oldprog ? oldprog->filter : NULL;
|
||||
cls_bpf.name = obj->bpf_name;
|
||||
cls_bpf.exts_integrated = obj->exts_integrated;
|
||||
cls_bpf.gen_flags = obj->gen_flags;
|
||||
|
||||
if (oldprog)
|
||||
tcf_block_offload_dec(block, &oldprog->gen_flags);
|
||||
|
|
@ -233,7 +232,6 @@ static void cls_bpf_offload_update_stats(struct tcf_proto *tp,
|
|||
cls_bpf.prog = prog->filter;
|
||||
cls_bpf.name = prog->bpf_name;
|
||||
cls_bpf.exts_integrated = prog->exts_integrated;
|
||||
cls_bpf.gen_flags = prog->gen_flags;
|
||||
|
||||
tc_setup_cb_call(block, NULL, TC_SETUP_CLSBPF, &cls_bpf, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue