How to easily update Connect X-3 firmware on Ubuntu 22.04

Step 1: Download the automatic firmware upgrade tool mlxup from NVidia . For me, the x64 Linux version worked on Ubuntu 22.04 without any issue

Step 2:chmod a+x mlxup to make mlxup executable

Step 3:sudo ./mlxup - then follow the prompts and, if desired, enter y to start the firmware upgrade

Step 4:reboot your computer for the changes to take effect

mlxup output for my card:

Querying Mellanox devices firmware ...

Device #1:
----------

  Device Type:      ConnectX3
  Part Number:      MCX311A-XCA_Ax
  Description:      ConnectX-3 EN network interface card; 10GigE; single-port SFP+; PCIe3.0 x4 8GT/s; RoHS R6
  PSID:             MT_1170110023
  PCI Device Name:  0000:03:00.0
  Port1 MAC:        248a076e6360
  Port2 MAC:        248a076e6361
  Versions:         Current        Available     
     FW             2.35.5100      2.42.5000     
     PXE            3.4.0648       3.4.0752      

  Status:           Update required

---------
Found 1 device(s) requiring firmware update...

Perform FW update? [y/N]: y
Device #1: Updating FW ...     
Done

Restart needed for updates to take effect.
Log File: /tmp/mlxup_workdir/mlxup-20221123_171552_28032.log