public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Hangbin Liu <liuhangbin@gmail.com>
To: wujianguo <wujianguo@chinatelecom.cn>
Cc: netdev@vger.kernel.org, kuba@kernel.org, edumazet@google.com,
	contact@proelbtn.com, pablo@netfilter.org, dsahern@kernel.org,
	pabeni@redhat.com, wujianguo106@163.com
Subject: Re: [PATCH net v2 2/3] selftests: add selftest for the SRv6 End.DX4 behavior with netfilter
Date: Wed, 5 Jun 2024 10:32:57 +0800	[thread overview]
Message-ID: <Zl_OWcrrEipnN_VP@Laptop-X1> (raw)
In-Reply-To: <20240604144949.22729-3-wujianguo@chinatelecom.cn>

Hi,
On Tue, Jun 04, 2024 at 10:49:48PM +0800, wujianguo wrote:
> From: Jianguo Wu <wujianguo@chinatelecom.cn>
> 
> this selftest is designed for evaluating the SRv6 End.DX4 behavior
> used with netfilter(rpfilter), in this example, for implementing
> IPv4 L3 VPN use cases.
> 
> Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>

When run your test via vng, I got

sysctl: cannot stat /proc/sys/net/netfilter/nf_hooks_lwtunnel: No such file or directory
Warning: Extension rpfilter revision 0 not supported, missing kernel module?
iptables v1.8.9 (nf_tables):  RULE_APPEND failed (No such file or directory): rule in chain PREROUTING

Looks we are missing some config in selftest net/config.

> ---
>  tools/testing/selftests/net/Makefile               |   1 +
>  .../selftests/net/srv6_end_dx4_netfilter_test.sh   | 335 +++++++++++++++++++++
>  2 files changed, 336 insertions(+)
>  create mode 100644 tools/testing/selftests/net/srv6_end_dx4_netfilter_test.sh

The file mode is 644. Although kselftest install will fix the mode.
It would be good if you can set it to 755 directly.

Thanks
Hangbin

  reply	other threads:[~2024-06-05  2:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04 14:49 [PATCH net v2 0/3] fix NULL dereference trigger by SRv6 with netfilter wujianguo
2024-06-04 14:49 ` [PATCH net v2 1/3] seg6: fix parameter passing when calling NF_HOOK() in End.DX4 and End.DX6 behaviors wujianguo
2024-06-04 14:49 ` [PATCH net v2 2/3] selftests: add selftest for the SRv6 End.DX4 behavior with netfilter wujianguo
2024-06-05  2:32   ` Hangbin Liu [this message]
2024-06-05  3:28     ` Jianguo Wu
2024-06-06  0:35       ` Jakub Kicinski
2024-06-06  2:10         ` Hangbin Liu
2024-06-06  2:23           ` Jakub Kicinski
2024-06-06  5:46             ` Pablo Neira Ayuso
2024-06-11  7:58               ` Jianguo Wu
2024-06-04 14:49 ` [PATCH net v2 3/3] selftests: add selftest for the SRv6 End.DX6 " wujianguo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zl_OWcrrEipnN_VP@Laptop-X1 \
    --to=liuhangbin@gmail.com \
    --cc=contact@proelbtn.com \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pablo@netfilter.org \
    --cc=wujianguo106@163.com \
    --cc=wujianguo@chinatelecom.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox