Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
Add latest new device IDs to device white lists
Browse files Browse the repository at this point in the history
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
  • Loading branch information
Hal Rosenstock committed Jun 12, 2018
1 parent 97aa799 commit 7d5e044
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions libibnetdisc/src/ibnetdisc.c
Expand Up @@ -198,15 +198,17 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t * port)
uint16_t devid = (uint16_t) mad_get_field(port->node->info, 0, IB_NODE_DEVID_F);
uint32_t vendorid = (uint32_t) mad_get_field(port->node->info, 0, IB_NODE_VENDORID_F);

if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 ||
if ((devid >= 0xc738 && devid <= 0xc73b) ||
devid == 0xc839 || devid == 0xcb20 || devid == 0xcf08 ||
devid == 0xcf09 || devid == 0xd2f0 ||
((vendorid == 0x119f) &&
/* Bull SwitchX */
(devid == 0x1b02 || devid == 0x1b50 ||
/* Bull SwitchIB and SwitchIB2 */
devid == 0x1ba0 ||
(devid >= 0x1bd0 && devid <= 0x1bd5))))
return 1;
if ((devid >= 0x1003 && devid <= 0x1019) ||
if ((devid >= 0x1003 && devid <= 0x101b) ||
((vendorid == 0x119f) &&
/* Bull ConnectX3 */
(devid == 0x1b33 || devid == 0x1b73 ||
Expand Down
6 changes: 4 additions & 2 deletions src/ibdiag_common.c
Expand Up @@ -542,15 +542,17 @@ int is_mlnx_ext_port_info_supported(uint32_t vendorid,
{
if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {

if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08 ||
if ((devid >= 0xc738 && devid <= 0xc73b) ||
devid == 0xc839 || devid == 0xcb20 || devid == 0xcf08 ||
devid == 0xcf09 || devid == 0xd2f0 ||
((vendorid == 0x119f) &&
/* Bull SwitchX */
(devid == 0x1b02 || devid == 0x1b50 ||
/* Bull SwitchIB and SwitchIB2 */
devid == 0x1ba0 ||
(devid >= 0x1bd0 && devid <= 0x1bd5))))
return 1;
if ((devid >= 0x1003 && devid <= 0x1019) ||
if ((devid >= 0x1003 && devid <= 0x101b) ||
((vendorid == 0x119f) &&
/* Bull ConnectX3 */
(devid == 0x1b33 || devid == 0x1b73 ||
Expand Down
3 changes: 2 additions & 1 deletion src/vendstat.c
Expand Up @@ -147,8 +147,9 @@ static uint16_t ext_fw_info_device[][2] = {
{0xc738, 0xc73b}, /* Switch-X */
{0xcb20, 0xcb20}, /* Switch-IB */
{0xcf08, 0xcf08}, /* Switch-IB2 */
{0xd2f0, 0xd2f0}, /* Quantum */
{0x01b3, 0x01b3}, /* IS-4 */
{0x1003, 0x1019}, /* Connect-X */
{0x1003, 0x101b}, /* Connect-X */
{0x1b02, 0x1b02}, /* Bull SwitchX */
{0x1b50, 0x1b50}, /* Bull SwitchX */
{0x1ba0, 0x1ba0}, /* Bull SwitchIB */
Expand Down

0 comments on commit 7d5e044

Please sign in to comment.