Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.10.3] Sr-iov not working with mellanox connectx4+ cards (mlx5_core)

  • Solved
  • Urgent

Reproduce -

Enable sr-iov and add vfs in the driver properly per the instructions.

 

Note that no ip commands work on virtual function devices, they don't show in `ip link show` correctly, and attaching a vm to them results in errors or non-operable interfaces.

 

Example -
 

# lspci | grep X-4
83:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
83:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function]
# ip link show eth1
15: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 98:03:9b:94:8d:30 brd ff:ff:ff:ff:ff:ff


Note that the VF does not show under eth1 as a vf, it shows as eth2:
 

# ip link show eth2
79: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 56:17:3a:18:05:d6 brd ff:ff:ff:ff:ff:ff

 

If I unbind the vf via `/sys/bus/pci/drivers/mlx5_core/unbind` it does not show at all under `ip link`.

 

With the vf bound _or_ unbound I get the following when trying to do _any_ ip link set operations on it -
 

# ip link set eth2 vf 0 mac 52:54:00:96:19:c1
RTNETLINK answers: Operation not supported


Another interesting point is that if I try to use it in kvm with an `<interface>` element I get this error when trying to start the vm - `error: internal error: missing IFLA_VF_INFO in netlink response`. 

 

If I use a `<hostdev>` element I can start the vm and it seems to recognize it but network traffic does not work.

 

This all works fine in ubuntu - 

 

1360050602_ScreenShot2022-06-15at10_48_07AM.thumb.png.3fdc2285e065883d140a5b35033ca472.png

 

If you need a diagnostics file I can send it in DM. Not comfortable uploading all that info to the public.

 

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.