On Wed, Oct 6, 2021 at 4:09 PM Joanne Koong <joannekoong@xxxxxx> wrote: > > This patch adds tests for bpf_load_tcp_hdr_options used by xdp > programs. > > test_xdp_tcp_hdr_options.c: > - Tests ipv4 and ipv6 packets with TCPOPT_EXP and non-TCPOPT_EXP > tcp options set. Verify that options can be parsed and loaded > successfully. > - Tests error paths: TCPOPT_EXP with invalid magic, option with > invalid kind_len, non-existent option, invalid flags, option size > smaller than kind_len, invalid packet > > Signed-off-by: Joanne Koong <joannekoong@xxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>