91bdbc0673
bunch of code changed indenting level and some code got moved out of one function and made into its own subroutine. - Gleb pointed out that I wasn't taking into account values from the default section of the INI file (and not finding values in the INI file is not an error). - I incorrectly thought that 0x5ad was Mellanox's vendor ID. Turns out that 0x5ad is Cisco's ID, while 0x2c9 is Mellanox. Specifically, Cisco burns its own firmware into the HCA which replaces the vendor ID, although the part ID stays the same. So it's Mellanox hardware with Cisco firmware. And apparently several of us do that. :-) So I expanded the concept of the vendor_id in the INI file to allow for lists of vendor IDs. - Along with that, I updated the default INI file to list all the IB vendors (that I am aware of -- certainly open to putting more data in there from other vendors) who overwrite Mellanox's vendor_id with their own for the part numbers that we have on file. This commit was SVN r11506.
84 строки
2.8 KiB
INI
84 строки
2.8 KiB
INI
#
|
|
# Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
|
|
# This is the default HCA parameters file for Open MPI's OpenIB BTL.
|
|
# If HCA vendors wish to add their respective values into this file
|
|
# (that is distributed with Open MPI), please contact the Open MPI
|
|
# development team. See http://www.open-mpi.org/ for details.
|
|
|
|
# This file is in the "ini" style, meaning that it has sections
|
|
# identified section names enclosed in square brackets (e.g.,
|
|
# "[Section name]") followed by "key = value" pairs indicating values
|
|
# for a specific HCA vendor and model. HCAs are identified by their
|
|
# vendor ID and vendor part ID, which can be obtained by running the
|
|
# diagnostic utility command "ibv_devinfo". The fields "vendor_id"
|
|
# and "vendor_part"id" are the vendor ID and vendor part ID,
|
|
# respectively.
|
|
|
|
# The sections in this file only accept a few fields:
|
|
|
|
# vendor_id: an integer, expressed either in decimal or hexidecimal
|
|
# (e.g., "13" or "0xd"), and can be taken directly from the output of
|
|
# "ibv_devinfo". Example:
|
|
#
|
|
# vendor_id = 0x05ad
|
|
|
|
# vendor_part_id: a comma-delimited list of integers of different HCA
|
|
# models from a single vendor, expressed in either decimal or
|
|
# hexidecimal (e.g., "13" or "0xd"). Individual values can be
|
|
# obtained from the output of the "ibv_devinfo". Example:
|
|
#
|
|
# vendor_part_id = 25208,25218
|
|
|
|
# mtu: an integer indicating the maximum transfer unit (MTU) to be
|
|
# used with this HCA. The effective MTU will be the minimum of an
|
|
# HCA's MTU value and its peer HCA's MTU value. Valid values are 256,
|
|
# 512, 1024, 2048, and 4096. Example:
|
|
#
|
|
# mtu = 1024
|
|
|
|
############################################################################
|
|
|
|
[default]
|
|
# These are the default values, identified by the vendor and part ID
|
|
# numbers of 0 and 0. If queried HCA does not return vendor and part
|
|
# ID numbers that match any of the sections in this file, the values
|
|
# in this section are used. Vendor IDs and part IDs can be hex or
|
|
# decimal.
|
|
vendor_id = 0
|
|
vendor_part_id = 0
|
|
mtu = 1024
|
|
|
|
############################################################################
|
|
|
|
[Mellanox Tavor Infinihost]
|
|
# Several vendors resell Mellanox hardware and put their own firmware
|
|
# on the cards, therefore overriding the default Mellanox vendor ID.
|
|
#
|
|
# Mellanox 0x2c9
|
|
# Cisco 0x5ad
|
|
# Silverstorm 0x66a
|
|
# Voltaire 0x8f1
|
|
#
|
|
vendor_id = 0x2c9,0x5ad,0x66a,0x8f1
|
|
vendor_part_id = 2310
|
|
mtu = 1024
|
|
|
|
############################################################################
|
|
|
|
[Mellanox Arbel InfiniHost III MemFree/Tavor]
|
|
vendor_id = 0x2c9,0x5ad,0x66a,0x8f1
|
|
vendor_part_id = 25208,25218
|
|
mtu = 1024
|
|
|
|
############################################################################
|
|
|
|
[Mellanox Sinai Infinihost III]
|
|
vendor_id = 0x2c9,0x5ad,0x66a,0x8f1
|
|
vendor_part_id = 25204
|
|
mtu = 2048
|