RDMA: Fix return code check in rdma_set_cq_moderation
authorKamal Heib <kamalheib1@gmail.com>
Tue, 31 Jul 2018 06:02:36 +0000 (09:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 23:03:46 +0000 (17:03 -0600)
commit26e551c5aec572442c4ad7109ff4350f427cd39d
tree994eac4d48100034faea4b798d1c7576b066883f
parentdd708e7b4541da1d61cdce2db1d9701444fdb317
RDMA: Fix return code check in rdma_set_cq_moderation

The proper return code is "-EOPNOTSUPP" when the modify_cq() callback is
not supported, all drivers should generate this and all users should check
for it when detecting not supported functionality.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com> (for mlx5)
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c