net: bpf: disable the usage of bpf_dispatcher for XDP

The usage of bpf_dispatcher for XDP caused kernel panic, and the reason
has not found. Therefore, disable it for now.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: robinlai <robinlai@tencent.com>
This commit is contained in:
Menglong Dong 2022-08-16 17:07:11 +08:00
parent 42d6bf3ee2
commit 0f48695cd4
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);