]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/qedr: Remove unsupported modify_port callback
authorKamal Heib <kamalheib1@gmail.com>
Mon, 28 Oct 2019 15:59:31 +0000 (17:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 17:30:24 +0000 (13:30 -0400)
There is no need to return always zero for function which is not
supported.

Fixes: ac1b36e55a51 ("qedr: Add support for user context verbs")
Link: https://lore.kernel.org/r/20191028155931.1114-5-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/main.c
drivers/infiniband/hw/qedr/verbs.c
drivers/infiniband/hw/qedr/verbs.h

index 03fd168cccc0fcfad93dc4a6fc466e4a49cffe00..ee47f6ce0c12aec57f1c2038099261cdd2bed71d 100644 (file)
@@ -213,7 +213,6 @@ static const struct ib_device_ops qedr_dev_ops = {
        .map_mr_sg = qedr_map_mr_sg,
        .mmap = qedr_mmap,
        .mmap_free = qedr_mmap_free,
-       .modify_port = qedr_modify_port,
        .modify_qp = qedr_modify_qp,
        .modify_srq = qedr_modify_srq,
        .poll_cq = qedr_poll_cq,
index 9a674e65c4f783516e68e34c5ff8063d8b05e39d..8096b8fcab4e91760bbe99a72e348943ec9af330 100644 (file)
@@ -256,12 +256,6 @@ int qedr_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *attr)
        return 0;
 }
 
-int qedr_modify_port(struct ib_device *ibdev, u8 port, int mask,
-                    struct ib_port_modify *props)
-{
-       return 0;
-}
-
 int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata)
 {
        struct ib_device *ibdev = uctx->device;
index 3606e97e95da8d72279c3e001744687dcf7d85c8..620472116c6d59a765630818bf05f5f13a73c839 100644 (file)
@@ -35,8 +35,6 @@
 int qedr_query_device(struct ib_device *ibdev,
                      struct ib_device_attr *attr, struct ib_udata *udata);
 int qedr_query_port(struct ib_device *, u8 port, struct ib_port_attr *props);
-int qedr_modify_port(struct ib_device *, u8 port, int mask,
-                    struct ib_port_modify *props);
 
 int qedr_iw_query_gid(struct ib_device *ibdev, u8 port,
                      int index, union ib_gid *gid);