On Wed, Oct 6, 2021 at 4:09 PM Joanne Koong <joannekoong@xxxxxx> wrote: > > This patch enables XDP programs to use the bpf_load_hdr_opt helper > function to load header options. > > The upper 16 bits of "flags" is used to denote the offset to the tcp > header. No other flags are, at this time, used by XDP programs. > In the future, more flags can be included to support other types of > header options. > > Much of the logic for loading header options can be shared between > sockops and xdp programs. In net/core/filter.c, this common shared > logic is refactored into a separate function both sockops and xdp > use. > > Signed-off-by: Joanne Koong <joannekoong@xxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>