Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Martin Wilck <mwilck@suse.com>
To: Zhu Yanjun <zyjzyj2000@gmail.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
	RDMA mailing list <linux-rdma@vger.kernel.org>,
	Mohammad Heib <goody698@gmail.com>,
	Vijay Immanuel <vijayi@attalasystems.com>,
	Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Subject: Re: [PATCH] Revert "RDMA/rxe: Remove VLAN code leftovers from RXE"
Date: Tue, 19 Jan 2021 14:13:25 +0100	[thread overview]
Message-ID: <23fce5aa875575b9a5446baa793a948cc393ca73.camel@suse.com> (raw)
In-Reply-To: <CAD=hENfrUJGeUGUfb6t6o3d8J_5ONMPfx3Gae8=xwrhq0DBKwg@mail.gmail.com>

On Tue, 2021-01-19 at 20:10 +0800, Zhu Yanjun wrote:
> On Tue, Jan 19, 2021 at 6:57 PM <mwilck@suse.com> wrote:
> > 
> > From: Martin Wilck <mwilck@suse.com>
> > 
> > This reverts commit b2d2440430c0fdd5e0cad3efd6d1c9e3d3d02e5b.
> > 
> > It's true that creating rxe on top of 802.1q interfaces doesn't
> > work.
> > Thus, commit fd49ddaf7e26 ("RDMA/rxe: prevent rxe creation on top
> > of vlan interface")
> > was absolutely correct.
> > 
> > But b2d2440430c0 was incorrect assuming that with this change,
> > RDMA and VLAN don't work togehter at all. It just has to be
> > set up differently. Rather than creating rxe on top of the VLAN
> > interface, rxe must be created on top of the physical interface.
> > RDMA then works just fine through VLAN interfaces on top of that
> > physical interface, via the "upper device" logic.
> 
> I read this commit log for several times. I can not get you.
> Can you show me by an example?

My test scenario which is broken by your patch uses a script that does
roughly the following:

# (set up eth0)
rdma link add rxe_eth0 type rxe netdev eth0
ip link add link eth0 name eth0.10 type vlan id 10
ip link set eth0.10 up
ip addr add 192.168.10.102/24 dev eth0.10

nvme discover -t rdma -a 192.168.10.101 -s 4420  

192.168.10.101 is another host that configures the network
and rxe the same way, and has some nvmet targets.

  => fails with your patch applied, works otherwise.

Regards,
Martin


      parent reply	other threads:[~2021-01-19 13:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19 10:56 [PATCH] Revert "RDMA/rxe: Remove VLAN code leftovers from RXE" mwilck
2021-01-19 12:10 ` Zhu Yanjun
     [not found]   ` <CANRB76_kkvfX9Us0rSynaNxYuVdYT-SLxEmhp+ijSeP+++HGdA@mail.gmail.com>
2021-01-19 13:01     ` Jason Gunthorpe
2021-01-19 13:49       ` Martin Wilck
2021-01-19 13:13   ` Martin Wilck [this message]

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=23fce5aa875575b9a5446baa793a948cc393ca73.camel@suse.com \
    --to=mwilck@suse.com \
    --cc=goody698@gmail.com \
    --cc=jgg@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=nmoreychaisemartin@suse.com \
    --cc=vijayi@attalasystems.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