commit | d1c57439e4f3db0a12259b9978905e92847505b8 | [log] [tgz] |
---|---|---|
author | Zhengchao Shao <shaozhengchao@huawei.com> | Wed Apr 27 14:23:38 2022 +0800 |
committer | Andrii Nakryiko <andrii@kernel.org> | Wed Apr 27 19:07:42 2022 -0700 |
tree | b8f4397e0970bced7bd13482b3fb8377e9223660 | |
parent | 0925225956bbef863d51ee882d4d20c9a9c90db2 [diff] |
samples/bpf: Detach xdp prog when program exits unexpectedly in xdp_rxq_info_user When xdp_rxq_info_user program exits unexpectedly, it doesn't detach xdp prog of device, and other xdp prog can't be attached to the device. So call init_exit() to detach xdp prog when program exits unexpectedly. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220427062338.80173-1-shaozhengchao@huawei.com