On Fri, May 28, 2021 at 2:43 AM Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx> wrote: > > On Thu, May 27, 2021 at 08:13:39PM +0000, Zvi Effron wrote: > > Support passing a xdp_md via ctx_in/ctx_out in bpf_attr for > > BPF_PROG_TEST_RUN. > > > > The intended use case is to pass some XDP meta data to the test runs of > > XDP programs that are used as tail calls. > > How about providing an actual selftests that will showcase the above so > reviewers could get in an easier way a grasp of what this set is about? > The very first test case in the added selftests (patch 3) does exactly that. The return code is passed via XDP meta data to the tested program (a program that normally would be invoked via tail call). This is the exact use case we have that prompted this patch set.