Currently the Windows implementation of bpf_load_program() accepts and ignores the version passed to it. In future, we should ideally have Windows specific versions passed to this API to specify which Windows version this load is targeted to.
Since the Linux kernel versions (a number) and Windows versions will be different, this issue is to track adding a new Windows specific section in ELF file where the target Windows version can be specified.
bpf_load_program()
takes a license and version as input. Looking at samples like https://elixir.bootlin.com/linux/v4.14.2/source/samples/bpf/bpf_load.c , either the kernel version is passed as 0 or is read from the ELF file.Currently the Windows implementation of
bpf_load_program()
accepts and ignores the version passed to it. In future, we should ideally have Windows specific versions passed to this API to specify which Windows version this load is targeted to.Since the Linux kernel versions (a number) and Windows versions will be different, this issue is to track adding a new Windows specific section in ELF file where the target Windows version can be specified.