From: Leon Romanovsky <leon@kernel.org>
To: Zhu Yanjun <zyjzyj2000@gmail.com>
Cc: Yi Zhang <yi.zhang@redhat.com>,
RDMA mailing list <linux-rdma@vger.kernel.org>
Subject: Re: modprobe rdma_rxe failed when ipv6 disabled
Date: Sun, 28 Feb 2021 11:23:53 +0200 [thread overview]
Message-ID: <YDthKWQa9+2BhvHd@unreal> (raw)
In-Reply-To: <CAD=hENeotEgBxi7WFmUVg8asxPduJaVc3UR+YSV3DxdX5v0=2w@mail.gmail.com>
On Sat, Feb 27, 2021 at 11:32:35PM +0800, Zhu Yanjun wrote:
> From 9dcdd09f3ca3cf222b563866acd91d18bc4b93d4 Mon Sep 17 00:00:00 2001
> From: Zhu Yanjun <zyjzyj2000@gmail.com>
> Date: Sat, 27 Feb 2021 23:01:15 +0000
> Subject: [PATCH 1/1] RDMA/rxe: Disable ipv6 features when ipv6.disable set in
> cmdline
>
> When ipv6.disable=1 is set in cmdline, ipv6 is actually disabled
> in the stack. As such, the operations of ipv6 in RXE will fail.
> So ipv6 features in RXE should also be disabled in RXE.
>
> Reported-by: Yi Zhang <yi.zhang@redhat.com>
> Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com>
> ---
> drivers/infiniband/sw/rxe/rxe_net.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/infiniband/sw/rxe/rxe_net.c
> b/drivers/infiniband/sw/rxe/rxe_net.c
> index 0701bd1ffd1a..6ef092cb575e 100644
> --- a/drivers/infiniband/sw/rxe/rxe_net.c
> +++ b/drivers/infiniband/sw/rxe/rxe_net.c
> @@ -72,6 +72,11 @@ static struct dst_entry *rxe_find_route6(struct
> net_device *ndev,
> struct dst_entry *ndst;
> struct flowi6 fl6 = { { 0 } };
>
> + if (!ipv6_mod_enabled()) {
> + pr_info("IPv6 is disabled by ipv6.disable=1 in cmdline");
> + return NULL;
> + }
> +
Except the info message, the change looks valid.
pr_info("IPv6 is disabled by ipv6.disable=1 in cmdline");
->
pr_info("IPv6 is disabled");
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
next prev parent reply other threads:[~2021-02-28 9:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1688338252.14107275.1614354083739.JavaMail.zimbra@redhat.com>
2021-02-26 15:47 ` modprobe rdma_rxe failed when ipv6 disabled Yi Zhang
2021-02-27 9:05 ` Zhu Yanjun
2021-02-27 10:18 ` Yi Zhang
2021-02-27 15:32 ` Zhu Yanjun
2021-02-27 15:35 ` Zhu Yanjun
2021-02-28 9:23 ` Leon Romanovsky [this message]
2021-02-28 10:24 ` Yi Zhang
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=YDthKWQa9+2BhvHd@unreal \
--to=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=yi.zhang@redhat.com \
--cc=zyjzyj2000@gmail.com \
/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