BPF List
 help / color / mirror / Atom feed
* xdp_bonding/xdp_bonding_redirect_multi is failing
@ 2023-04-14  0:25 Alexei Starovoitov
  2023-04-14 12:57 ` Jussi Maki
  0 siblings, 1 reply; 3+ messages in thread
From: Alexei Starovoitov @ 2023-04-14  0:25 UTC (permalink / raw)
  To: Jussi Maki, Daniel Borkmann, Andrii Nakryiko, Manu Bretelle, bpf

Hi Jussi,

after bpf-next -> net-next merge:

test_progs -t xdp_bonding/xdp_bonding_redirect_multi

is failing with:
test_xdp_bonding_redirect_multi:FAIL:expected packets on veth1_2
unexpected expected packets on veth1_2: actual 1 < expected 100
restore_root_netns:PASS:restore_root_netns 0 nsec
restore_root_netns:PASS:restore_root_netns 0 nsec
bonding_cleanup:PASS:delete bond1 0 nsec
bonding_cleanup:PASS:delete veth1_1 0 nsec
bonding_cleanup:PASS:delete veth1_2 0 nsec
bonding_cleanup:PASS:delete ns_dst 0 nsec
#326/8   xdp_bonding/xdp_bonding_redirect_multi:FAIL
#326     xdp_bonding:FAIL

please take a look.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xdp_bonding/xdp_bonding_redirect_multi is failing
  2023-04-14  0:25 xdp_bonding/xdp_bonding_redirect_multi is failing Alexei Starovoitov
@ 2023-04-14 12:57 ` Jussi Maki
  2023-04-14 14:31   ` Lorenzo Bianconi
  0 siblings, 1 reply; 3+ messages in thread
From: Jussi Maki @ 2023-04-14 12:57 UTC (permalink / raw)
  To: Alexei Starovoitov
  Cc: Daniel Borkmann, Andrii Nakryiko, Manu Bretelle, bpf, lorenzo

Hi Alexei,

On Fri, Apr 14, 2023 at 3:26 AM Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
>
> is failing with:
> test_xdp_bonding_redirect_multi:FAIL:expected packets on veth1_2
> unexpected expected packets on veth1_2: actual 1 < expected 100

I bisected this down to:
fccca038f3 veth: take into account device reconfiguration for xdp_features flag.

This seems to break XDP redirection from a veth device to another veth device.
Since bonding just delegates the XDP loading to the slave devices the
failure should
also be reproducible with just a pair of veth devices:

 pkt -> veth1_1  <|> veth1_2 (xdp_redirect_map_multi_prog redirects)
                  |              /
     <- veth2_1  <|> veth2_2   <-

It seems like this is the same failure as with the xdp_do_redirect test:
https://lore.kernel.org/bpf/ea5cda51-e8f0-2bcd-abfa-b6bf4b11d354@linux.dev/

Lorenzo: if you fix the xdp_do_redirect test, could you also check
that xdp_bonding passes?

Cheers,
Jussi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xdp_bonding/xdp_bonding_redirect_multi is failing
  2023-04-14 12:57 ` Jussi Maki
@ 2023-04-14 14:31   ` Lorenzo Bianconi
  0 siblings, 0 replies; 3+ messages in thread
From: Lorenzo Bianconi @ 2023-04-14 14:31 UTC (permalink / raw)
  To: Jussi Maki
  Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Manu Bretelle, bpf, lorenzo

[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]

> Hi Alexei,
> 
> On Fri, Apr 14, 2023 at 3:26 AM Alexei Starovoitov
> <alexei.starovoitov@gmail.com> wrote:
> >
> > is failing with:
> > test_xdp_bonding_redirect_multi:FAIL:expected packets on veth1_2
> > unexpected expected packets on veth1_2: actual 1 < expected 100
> 
> I bisected this down to:
> fccca038f3 veth: take into account device reconfiguration for xdp_features flag.
> 
> This seems to break XDP redirection from a veth device to another veth device.
> Since bonding just delegates the XDP loading to the slave devices the
> failure should
> also be reproducible with just a pair of veth devices:
> 
>  pkt -> veth1_1  <|> veth1_2 (xdp_redirect_map_multi_prog redirects)
>                   |              /
>      <- veth2_1  <|> veth2_2   <-
> 
> It seems like this is the same failure as with the xdp_do_redirect test:
> https://lore.kernel.org/bpf/ea5cda51-e8f0-2bcd-abfa-b6bf4b11d354@linux.dev/
> 
> Lorenzo: if you fix the xdp_do_redirect test, could you also check
> that xdp_bonding passes?
> 
> Cheers,
> Jussi

Hi Jussi,

sure, let me look into it.

Regards,
Lorenzo

> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-14 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-14  0:25 xdp_bonding/xdp_bonding_redirect_multi is failing Alexei Starovoitov
2023-04-14 12:57 ` Jussi Maki
2023-04-14 14:31   ` Lorenzo Bianconi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox