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>