Daniel Jurgens
805b754d49
IB/core: Eliminate a hole in MAD agent struct
Move the security related fields above the u8s to eliminate a hole in the
struct.
pahole before:
struct ib_mad_agent {
...
u32 hi_tid; /* 48 4 */
u32 flags; /* 52 4 */
u8 port_num; /* 56 1 */
u8 rmpp_version; /* 57 1 */
/* XXX 6 bytes hole, try to pack */
/* --- cacheline 1 boundary (64 bytes) --- */
void * security; /* 64 8 */
bool smp_allowed; /* 72 1 */
bool lsm_nb_reg; /* 73 1 */
/* XXX 6 bytes hole, try to pack */
struct notifier_block lsm_nb; /* 80 24 */
/* XXX last struct has 4 bytes of padding */
/* size: 104, cachelines: 2, members: 14 */
...
};
pahole after:
struct ib_mad_agent {
...
u32 hi_tid; /* 48 4 */
u32 flags; /* 52 4 */
void * security; /* 56 8 */
/* --- cacheline 1 boundary (64 bytes) --- */
struct notifier_block lsm_nb; /* 64 24 */
/* XXX last struct has 4 bytes of padding */
u8 port_num; /* 88 1 */
u8 rmpp_version; /* 89 1 */
bool smp_allowed; /* 90 1 */
bool lsm_nb_reg; /* 91 1 */
/* size: 96, cachelines: 2, members: 14 */
...
};
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-08 16:24:44 -07:00
..
2018-10-16 13:34:01 -04:00
2018-08-17 16:45:51 -06:00
2018-10-16 13:34:01 -04:00
2018-11-21 16:13:02 -07:00
2018-02-01 15:43:29 -07:00
2019-02-08 16:24:44 -07:00
2017-08-08 14:47:18 -04:00
2017-10-18 12:11:36 -04:00
2015-12-23 15:58:30 -05:00
2018-10-16 13:34:01 -04:00
2015-09-03 15:50:32 -04:00
2019-01-24 09:22:30 -07:00
2019-01-10 17:07:45 -07:00
2019-02-04 14:53:42 -07:00
2018-07-30 20:49:04 -06:00
2019-02-08 16:18:06 -07:00
2019-02-05 15:40:41 -07:00
2016-05-13 13:37:18 -04:00
2018-07-03 14:11:34 -06:00
2017-04-20 15:19:35 -04:00
2016-12-14 11:01:58 -05:00
2017-08-22 14:22:37 -04:00
2018-01-10 22:00:33 -07:00
2019-02-08 16:14:21 -07:00
2018-10-03 16:06:07 -06:00
2019-01-14 13:05:14 -07:00
2018-05-09 15:53:30 -04:00
2017-08-28 19:12:31 -04:00
2018-10-03 16:38:28 -06:00
2019-01-30 21:34:21 -07:00
2017-09-05 15:15:30 -04:00
2018-12-20 15:18:18 -07:00
2018-12-06 21:11:06 -07:00
2018-12-04 13:46:41 -05:00
2019-01-29 13:32:43 -07:00