Re: [PATCH bpf-next v3] bpf testing: permit ingress_ifindex in bpf_prog_test_run_xattr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 31, 2021 at 10:56 PM John Fastabend
<john.fastabend@xxxxxxxxx> wrote:
>
> Neil Spring wrote:
> > bpf_prog_test_run_xattr takes a struct __sk_buff, but did not permit
> > that __skbuff to include an nonzero ingress_ifindex.
> >
> > This patch updates to allow ingress_ifindex, convert the __sk_buff field to
> > sk_buff (skb_iif) and back, and test that the value is present from
> > tested bpf.  The test sets an unlikely distinct value for ingress_ifindex
> > (11) from ifindex (1), but that seems in keeping with the rest of the
> > synthetic fields.
> >
> > Adding this support allows testing BPF that operates differently on
> > incoming and outgoing skbs by discriminating on this field.
> >
> > Signed-off-by: Neil Spring <ntspring@xxxxxx>
> > ---
>
> Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>

Applied to bpf-next, thanks.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux