All of lore.kernel.org
 help / color / mirror / Atom feed
* [?bug] Can't get switchdev mode work on ConnectX-4 Card
@ 2025-04-21  9:07 Qiyu Yan
  2025-04-22  6:42 ` Mark Bloch
  0 siblings, 1 reply; 6+ messages in thread
From: Qiyu Yan @ 2025-04-21  9:07 UTC (permalink / raw)
  To: Saeed Mahameed, Tariq Toukan; +Cc: netdev, Ivan Vecera, Jiri Pirko

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-22  8:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21  9:07 [?bug] Can't get switchdev mode work on ConnectX-4 Card Qiyu Yan
2025-04-22  6:42 ` Mark Bloch
2025-04-22  7:15   ` Qiyu Yan
2025-04-22  8:14     ` Mark Bloch
2025-04-22  8:45       ` Qiyu Yan
2025-04-22  8:50         ` Mark Bloch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.