[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+FuTSeoy9v9omBOMyL=3NY8ayEz6gPaTcZXStCuTdmHWQtYHQ@mail.gmail.com>
Date: Wed, 25 May 2022 08:34:48 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: Yun Lu <luyun_611@....com>, davem@...emloft.net,
edumazet@...gle.com, willemdebruijn.kernel@...il.com,
liuyun01@...inos.cn, netdev@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH v2] selftests/net: enable lo.accept_local in psock_snd test
On Wed, May 25, 2022 at 3:20 AM Hangbin Liu <liuhangbin@...il.com> wrote:
>
> On Wed, May 25, 2022 at 11:18:19AM +0800, Yun Lu wrote:
> > From: luyun <luyun@...inos.cn>
> >
> > The psock_snd test sends and recieves packets over loopback, and
> > the test results depend on parameter settings:
> > Set rp_filter=0,
> > or set rp_filter=1 and accept_local=1
> > so that the test will pass. Otherwise, this test will fail with
> > Resource temporarily unavailable:
> > sudo ./psock_snd.sh
> > dgram
> > tx: 128
> > rx: 142
> > ./psock_snd: recv: Resource temporarily unavailable
> >
> > For most distro kernel releases(like Ubuntu or Centos), the parameter
> > rp_filter is enabled by default, so it's necessary to enable the
> > parameter lo.accept_local in psock_snd test. And this test runs
> > inside a netns, changing a sysctl is fine.
> >
> > v2: add detailed description.
> >
> > Suggested-by: Willem de Bruijn <willemdebruijn.kernel@...il.com>
> > Signed-off-by: luyun <luyun@...inos.cn>
> > Reviewed-by: Jackie Liu <liuyun01@...inos.cn>
Acked-by: Willem de Bruijn <willemb@...gle.com>
ps: I did not really suggest this fix, but no need to respin just to remove that
Powered by blists - more mailing lists