From: Mukesh Kacker Date: Sat, 1 Jul 2017 22:35:41 +0000 (-0700) Subject: IB/mlx4: Suppress warning for not handled portmgmt event subtype X-Git-Tag: v4.1.12-106.0.20170710_2300~57 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cef258494a818e96db0e4ed40ddd2c52e6084846;p=users%2Fjedix%2Flinux-maple.git IB/mlx4: Suppress warning for not handled portmgmt event subtype The new CX3 firmware can generate port management event sl to vl table change which we are not handling yet in the driver. Suppress the warning. (This commit should be reverted when sl to vl table change handling is added) Orabug: 26409594 Signed-off-by: Mukesh Kacker Reviewed-by: Babu Moger Reviewed-by: Yuval Shaia --- diff --git a/drivers/infiniband/hw/mlx4/mad.c b/drivers/infiniband/hw/mlx4/mad.c index 4a225042dfa0..413d6937e41e 100644 --- a/drivers/infiniband/hw/mlx4/mad.c +++ b/drivers/infiniband/hw/mlx4/mad.c @@ -1107,6 +1107,11 @@ void handle_port_mgmt_change_event(struct work_struct *work) handle_slaves_guid_change(dev, port, tbl_block, change_bitmap); } break; + case MLX4_DEV_PMC_SUBTYPE_SL_TO_VL_MAP: + pr_debug("Subtype sl to vl map change (0x%x) for " + "Port Management Change event received - " + "not supported yet\n", eqe->subtype); + break; default: pr_warn("Unsupported subtype 0x%x for " "Port Management Change event\n", eqe->subtype); diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 80ee7f1a80f6..31ba41fca16a 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -429,6 +429,7 @@ enum { MLX4_DEV_PMC_SUBTYPE_GUID_INFO = 0x14, MLX4_DEV_PMC_SUBTYPE_PORT_INFO = 0x15, MLX4_DEV_PMC_SUBTYPE_PKEY_TABLE = 0x16, + MLX4_DEV_PMC_SUBTYPE_SL_TO_VL_MAP = 0x17, }; /* Port mgmt change event handling */