Infiniband for Mellanox Technologies MT25204 (Ubuntu or FreeBSD)

Good day . I need to set up Infiniband on the server where you installed the network card Mellanox Technologies MT25204. To select the operating system there are 2 options : Ubuntu and FreeBSD. Tell me , what OS should be selected ? Which package used to install the service OPENSM, as well as additional tools ?

Thanks in advance.