[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <31146ec3-f581-423e-ab54-2d734d3ac42e@nvidia.com>
Date: Tue, 22 Apr 2025 11:50:57 +0300
From: Mark Bloch <mbloch@...dia.com>
To: Qiyu Yan <yanqiyu17@...ls.ucas.ac.cn>, Saeed Mahameed
<saeedm@...dia.com>, Tariq Toukan <tariqt@...dia.com>
Cc: netdev@...r.kernel.org, Ivan Vecera <ivecera@...hat.com>,
Jiri Pirko <jiri@...nulli.us>
Subject: Re: [?bug] Can't get switchdev mode work on ConnectX-4 Card
On 22/04/2025 11:45, Qiyu Yan wrote:
> 在 2025/4/22 16:14, Mark Bloch 写道:
>> so you want to do QinQ (not sure cx4-lx supports qinq)
>> or just different vlans based on the traffic?
>> I don't think cx4-lx supports vlan push offloads.
> Just want to grant access to different vlans through a single VF, the command with ip
> $ ip link set <interface> vf X vlan Y
> filters and tags a single vlan. I am wondering if there is a suggested way to "pass-though" multiple vlans to a VM that I can create vlan interface in.
Usually you don't want the VF to be aware what vlans are used, on egress in the FDB you push vlan
and on ingress in the FDB you pop vlan. The VF gets the traffic without any vlans.
With the TC command I wrote you can match on mac (or ip, tcp, udp etc) and push/pop vlan as you want
and with as many different vlan as you want.
>
> Maybe this patch is for this: https://patchwork.ozlabs.org/project/netdev/cover/20170827110618.20599-1-saeedm@mellanox.com/ but it is not merged yet...
This patch is from 2017, it's not relevant.
mark
>
> Or I have to put the VF in promiscuous mode/pass-though multiple VFs?
>
> Qiyu
>
Powered by blists - more mailing lists