IB/umad: Simplify and avoid dynamic allocation of class
authorParav Pandit <parav@mellanox.com>
Fri, 21 Dec 2018 14:19:23 +0000 (16:19 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 21 Dec 2018 17:39:36 +0000 (10:39 -0700)
commit900d07c12d4ed0e2c237655b55383df8d2c715ff
treec81e07d8d0e76b3a9c121617d5da5a3fdc51d6aa
parent623d154305c06c83924b8fd2afbfdeba3b396fb7
IB/umad: Simplify and avoid dynamic allocation of class

Simplify code to have a static structure instance for umad class
allocation.

This will allow to have class attributes defined along with class
registration in subsequent patch and allows more class methods definition
similar to ib_core module.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/user_mad.c