diff options
author | Parav Pandit <parav@mellanox.com> | 2018-04-03 23:06:18 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-04-05 10:15:33 -0600 |
commit | 39e00b6cf65831469a57333a929b8ca986892798 (patch) | |
tree | 4e398b22b92c6dad71fd32e87a67fe7edc846fab /drivers/infiniband/sw | |
parent | 57939021e8f882d13a5263a9d682c64ae00c578d (diff) | |
download | linux-stable-39e00b6cf65831469a57333a929b8ca986892798.tar.gz linux-stable-39e00b6cf65831469a57333a929b8ca986892798.tar.bz2 linux-stable-39e00b6cf65831469a57333a929b8ca986892798.zip |
IB/rxe: Removed GID add/del dummy routines
rxe driver's add_gid() and del_gid() callbacks are doing simple
checks which are already done by the ib core before invoking these
callback routines.
Therefore, code is simplified to skip implementing add_gid() and
del_gid() callback functions.
They are only invoked by ib_core if they are implemented.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 08f3e0618b81..a65550d6a849 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c @@ -77,21 +77,6 @@ out: return rc; } -static int rxe_add_gid(const union ib_gid *gid, - const struct ib_gid_attr *attr, void **context) -{ - if (attr->index >= RXE_PORT_GID_TBL_LEN) - return -EINVAL; - return 0; -} - -static int rxe_del_gid(const struct ib_gid_attr *attr, void **context) -{ - if (attr->index >= RXE_PORT_GID_TBL_LEN) - return -EINVAL; - return 0; -} - static struct net_device *rxe_get_netdev(struct ib_device *device, u8 port_num) { @@ -1265,8 +1250,6 @@ int rxe_register_device(struct rxe_dev *rxe) dev->modify_port = rxe_modify_port; dev->get_link_layer = rxe_get_link_layer; dev->get_netdev = rxe_get_netdev; - dev->add_gid = rxe_add_gid; - dev->del_gid = rxe_del_gid; dev->query_pkey = rxe_query_pkey; dev->alloc_ucontext = rxe_alloc_ucontext; dev->dealloc_ucontext = rxe_dealloc_ucontext; |