Commit 84de14ba authored by Guoqing Jiang's avatar Guoqing Jiang Committed by Jason Gunthorpe

RDMA/siw: Move tx_cpu ahead

We can reduce one cacheline for the usage of struct siw_qp.

Before,

	/* size: 1928, cachelines: 31, members: 38 */
	/* sum members: 1920, holes: 2, sum holes: 8 */
	/* paddings: 4, sum paddings: 13 */
	/* forced alignments: 3 */

after

	/* size: 1920, cachelines: 30, members: 38 */
	/* paddings: 4, sum paddings: 13 */
	/* forced alignments: 3 */

Link: https://lore.kernel.org/r/20231203092655.28102-2-guoqing.jiang@linux.devAcked-by: default avatarBernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 50af5d12
...@@ -417,10 +417,10 @@ struct siw_iwarp_tx { ...@@ -417,10 +417,10 @@ struct siw_iwarp_tx {
struct siw_qp { struct siw_qp {
struct ib_qp base_qp; struct ib_qp base_qp;
struct siw_device *sdev; struct siw_device *sdev;
int tx_cpu;
struct kref ref; struct kref ref;
struct completion qp_free; struct completion qp_free;
struct list_head devq; struct list_head devq;
int tx_cpu;
struct siw_qp_attrs attrs; struct siw_qp_attrs attrs;
struct siw_cep *cep; struct siw_cep *cep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment