[PATCH OLK-5.10 06/13] bpf: Add bpf_handle_ingress/egress_ptype helper function