summaryrefslogtreecommitdiff
path: root/lib/test_module.c
diff options
context:
space:
mode:
authorDaniel Jurgens <danielj@mellanox.com>2018-02-25 13:39:53 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-02-28 12:10:32 -0700
commitaba462134634b502d720e15b23154f21cfa277e5 (patch)
tree769c0625c0793a928262d92e67263d949834b524 /lib/test_module.c
parente7b169f34403becd3c9fd3b6e46614ab788f2187 (diff)
downloadlinux-next-aba462134634b502d720e15b23154f21cfa277e5.tar.gz
{net, IB}/mlx5: Raise fatal IB event when sys error occurs
All other mlx5_events report the port number as 1 based, which is how FW reports it in the port event EQE. Reporting 0 for this event causes mlx5_ib to not raise a fatal event notification to registered clients due to a seemingly invalid port. All switch cases in mlx5_ib_event that go through the port check are supposed to set the port now, so just do it once at variable declaration. Fixes: 89d44f0a6c73("net/mlx5_core: Add pci error handlers to mlx5_core driver") Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'lib/test_module.c')
0 files changed, 0 insertions, 0 deletions