Skip to contentSkip to conversation

doc: update mlxreg command arguments for recent versions

PATCH In review Ali Alnubani 2 participants 2 messages Jul 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: update mlxreg command arguments for recent versions

Recent versions of the command require vhca_id and all_vhca to be set with the --indexes arg.

---
 doc/guides/nics/mlx5.rst | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
doc/guides/nics/mlx5.rst +8 -2
index 7a137d5f6a..68ecdbec15 100644
@@ -1887,9 +1887,15 @@ The procedure below is an example of using a ConnectX-5 adapter card (pf0) with
         $ ip link set p0 vf 0 trust on
         $ ip link set p0 vf 1 trust on
 
-#. Configure all VFs using mlxreg::
+#. Configure all VFs using mlxreg:
 
-   $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --set "all_vhca=0x1,trust_level=0x1"
+      - For MFT >= 4.21::
+
+        $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --indexes 'all_vhca=0x1,vhca_id=0x0' --set 'trust_level=0x1'
+
+      - For MFT < 4.21::
+
+        $ mlxreg -d /dev/mst/mt4121_pciconf0 --reg_name VHCA_TRUST_LEVEL --yes --set "all_vhca=0x1,trust_level=0x1"
 
    .. note::
 
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 10 lines

-----Original Message-----
From: Ali Alnubani <[email protected]>
Sent: Monday, July 3, 2023 10:48 AM
To: [email protected]
Subject: [PATCH] doc: update mlxreg command arguments for recent versions

Recent versions of the command require vhca_id and all_vhca to be set with the --indexes arg.

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh