On Mon, 13 Nov 2023 20:54:52 -0800 Stanislav Fomichev wrote: > Commit 2b3486bc2d23 ("bpf: Introduce device-bound XDP programs") > introduced device-bound programs by largely reusing existing > offloading infrastructure. This changed the semantics of > 'prog->aux->offload' a bit. Now, it's non-null for both > offloaded and device-bound programs. > > Instead of looking at 'prog->aux->offload' let's call > bpf_prog_is_offloaded which should be true iff the program > is offloaded and not merely device-bound. Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx>