lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <8b96e37c-842b-4afb-9c61-f71674874be5@mails.ucas.ac.cn>
Date: Mon, 21 Apr 2025 17:07:20 +0800
From: Qiyu Yan <yanqiyu17@...ls.ucas.ac.cn>
To: 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: [?bug] Can't get switchdev mode work on ConnectX-4 Card

Hi,

I have a ConnectX-4 Lx EN MCX4121A-acat card:

$ lspci -s c1:00.0
c1:00.0 Ethernet controller: Mellanox Technologies MT27710 Family 
[ConnectX-4 Lx]
$ devlink dev info pci/0000:c1:00.0
pci/0000:c1:00.0:
   driver mlx5_core
   versions:
       fixed:
         fw.psid MT_2420110034
       running:
         fw.version 14.32.1900
         fw 14.32.1900
       stored:
         fw.version 14.32.1900
         fw 14.32.1900

I wanted to put the card to switchdev mode, so I started trying to to 
the following:

# enable switchdev mode
$ sudo devlink dev eswitch set pci/0000:c1:00.0 mode switchdev
$ sudo devlink dev eswitch show pci/0000:c1:00.0
pci/0000:c1:00.0: mode switchdev inline-mode link encap-mode basic

# create 2 VFs
$ echo 2 | sudo tee /sys/class/net/mlx-p0/device/sriov_numvfs

# Try add interface to bridges
$ sudo ip link add vmbr type bridge
$ sudo ip link set mlx-p0 master vmbr
Error: mlx5_core: Error checking for existing bridge with same ifindex.
$ sudo ip link set enp193s0f0r0 master vmbr
Error: mlx5_core: Error checking for existing bridge with same ifindex.

when the failure happens, there are messages like this in kmsg:

mlx5_core 0000:c1:00.0 mlx-p0: entered allmulticast mode
mlx5_core 0000:c1:00.0 mlx-p0: left allmulticast mode
mlx5_core 0000:c1:00.0 mlx-p0: failed (err=-22) to set attribute (id=6)

I am wondering if this is a bug in the current driver or anything above 
is wrong?

Some additional information:

(Fedora stock kernel 6.14.2-300.fc42.x86_64)
$ uname -a
Linux epyc-server 6.14.2-300.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 
10 21:50:55 UTC 2025 x86_64 GNU/Linux
$ rpm -q iproute
iproute-6.12.0-3.fc42.x86_64

Best,
Qiyu


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ