IB/core: Shuffle locks in ib_port_data to save memory
authorAnand Khoje <anand.a.khoje@oracle.com>
Wed, 16 Jun 2021 15:45:08 +0000 (21:15 +0530)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 21 Jun 2021 23:49:32 +0000 (20:49 -0300)
commit84dcd8c7eab8bc29a6eb402b535651171a9a9d54
tree4369b068352b8d116e9846f0efc2680aa67a2057
parentc5f8f2c5e5bfd4fd5fc5c413051ad14b7873b1fd
IB/core: Shuffle locks in ib_port_data to save memory

pahole shows two 4-byte holes in struct ib_port_data after pkey_list_lock
and netdev_lock respectively.

Shuffling the netdev_lock to be after pkey_list_lock, this shaves off
eight bytes from the struct.

Link: https://lore.kernel.org/r/20210616154509.1047-3-anand.a.khoje@oracle.com
Suggested-by: Haakon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Anand Khoje <anand.a.khoje@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/ib_verbs.h