From: Martin Wilck <mwilck@suse.com>
To: Jason Gunthorpe <jgg@nvidia.com>, "Mohamed._. Heib" <goody698@gmail.com>
Cc: Zhu Yanjun <zyjzyj2000@gmail.com>,
RDMA mailing list <linux-rdma@vger.kernel.org>,
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:49:04 +0100 [thread overview]
Message-ID: <437bed090fc9af02aaaf46a5841874ca31cc9d36.camel@suse.com> (raw)
In-Reply-To: <20210119130102.GO4147@nvidia.com>
On Tue, 2021-01-19 at 09:01 -0400, Jason Gunthorpe wrote:
> On Tue, Jan 19, 2021 at 02:40:52PM +0200, Mohamed._. Heib wrote:
> > Hi,
> > As far as i remember the traffic still can be encapsulated over
> > the
> > vlan interface with vlan tag
> > by specifying the vlan interface gid index that mapped to the
> > vlan ip
> > on the vlan parent interface gids table.
> > And by removing the vlan related functionality on rxe (commit:
> > b2d2440430c0) the rxe still can send traffic via vlan interface
> > but can't receive from vlan interface and that will break the
> > vlan
> > functionality on rxe so i think you need keep the vlan related
> > code on
> > rxe.
>
> That may be, but the code here is still wrong.
>
> Incoming packets are supposed to be matched to the gid table, which
> specifies the allowed vlans, it can't just be taken raw from the skb
> like this.
I lack the deep understanding of the RDMA stack to fully understand.
Are you saying it's a permission problem? Do you see a security issue?
Or is it not compliant with some spec? Which?
> If someone wants to add vlan support to rxe it needs to be done
> right,
> currently it doesn't support vlan.
Hm. As a matter of fact, it has "worked" this way in mainline since
v5.0, when 43c9fc509fa5 ("rdma_rxe: make rxe work over 802.1q VLAN
devices") had been merged. The code that deals with VLANs in RXE, which
was fixed by that commit, is older. AFAICS it dates back to the first
merge of the rxe driver.
Just ripping the code out causes a regression, after 10 kernel minor
releases during which it "worked" in practice (as far as I can judge).
I suppose there are only a few users of this feature, but I fail to see
why keeping this code in until a clean implementation is available
would do any harm.
I'd like to fix this for good, but I lack the knowledge to do this, at
least in the short term. I've asked back in 2018 how RXE+VLAN was
intended to work, but never got an answer.
Regards,
Martin
next prev parent reply other threads:[~2021-01-20 0:12 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 [this message]
2021-01-19 13:13 ` Martin Wilck
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=437bed090fc9af02aaaf46a5841874ca31cc9d36.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