[PATCH openEuler-22.09 v2 047/391] bpf: Refactor check_cfg to use a structured loop.