On Tue, Sep 6, 2016 at 7:15 PM, Joe Perches <j...@perches.com> wrote: > On Tue, 2016-09-06 at 19:04 +0300, Saeed Mahameed wrote: >> From: Huy Nguyen <h...@mellanox.com> > > [] > >> +void mlx5_port_module_event(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe) >> +{ >> > + struct mlx5_eqe_port_module *module_event_eqe; >> > + u8 module_status; >> > + u8 module_num; >> > + u8 error_type; >> + >> > + module_event_eqe = &eqe->data.port_module; >> > + module_num = module_event_eqe->module; >> > + module_status = module_event_eqe->module_status & >> > + PORT_MODULE_EVENT_MODULE_STATUS_MASK; >> > + error_type = module_event_eqe->error_type & >> > + PORT_MODULE_EVENT_ERROR_TYPE_MASK; >> + >> > + switch (module_status) { >> > + case MLX5_MODULE_STATUS_PLUGGED: >> + mlx5_core_info(dev, "Module %u, status: plugged", module_num); > > > Missing format '\n' line terminations
Right, will fix this. Thanks > >> + break; >> + >> > + case MLX5_MODULE_STATUS_UNPLUGGED: >> > + mlx5_core_info(dev, "Module %u, status: unplugged", >> > module_num); >> > + break; >> + >> > + case MLX5_MODULE_STATUS_ERROR: >> > + mlx5_core_info(dev, "Module %u, status: error, %s", module_num, >> > + >> > mlx5_port_event_error_type_to_string(error_type)); >> > + break; >> + >> > + default: >> > + mlx5_core_info(dev, "Module %u, unknown module status %x", >> > + module_num, module_status); >> + } > > Should any of these be ratelimited? > Huy is checking with the HW/FW guys. they shouldn't flood the driver by design, but to be in the safe side, we will double check. Thanks, Saeed.