IB/core: Add comment for change upper netevent handling
authorParav Pandit <parav@mellanox.com>
Tue, 14 Aug 2018 07:36:15 +0000 (10:36 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Aug 2018 22:43:55 +0000 (16:43 -0600)
commit666e7099a41afbbc1fb3ee785cad808d2925e12a
treefbf07153081edacdd379c6ea0564496c6be6cc41
parent40b173ddce0fc6653a859889d1a90b5f5817061b
IB/core: Add comment for change upper netevent handling

Add comment for handling CHANGEUPPER netevent handling.
To improve code readability,
(a) move cmd definitions to its respective if-else branches,
(b) avoid single line structure definitions.

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