Merge pull request #252 from xmmgithub/tk4/master

net: bpf: disable the usage of bpf_dispatcher for XDP
This commit is contained in:
frankjpliu 2022-08-16 17:23:29 +08:00 committed by GitHub
commit 8d3946e668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -8426,9 +8426,6 @@ static int dev_xdp_install(struct net_device *dev, bpf_op_t bpf_op,
xdp.prog = prog;
err = bpf_op(dev, &xdp);
if (!err && non_hw)
bpf_prog_change_xdp(prev_prog, prog);
if (prev_prog)
bpf_prog_put(prev_prog);