[PATCH openEuler-22.09 049/379] bpf: Refactor check_cfg to use a structured loop.