Re: [PATCH v5 for-4.13 3/7] mlx5: move affinity hints assignments to generic code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  
> +static int mlx5e_get_node(struct mlx5e_priv *priv, int ix)
> +{
> +	return pci_irq_get_node(priv->mdev->pdev, MLX5_EQ_VEC_COMP_BASE + ix);
> +}

This helper seems very useful indeed..

>  	rq->mpwqe.info = kzalloc_node(wq_sz * sizeof(*rq->mpwqe.info),
> -				      GFP_KERNEL, cpu_to_node(c->cpu));
> +					GFP_KERNEL, node);

Why the reindenting?

>  	/* We allocate more than mtt_sz as we will align the pointer */
> -	rq->mpwqe.mtt_no_align = kzalloc_node(mtt_alloc * wq_sz, GFP_KERNEL,
> -					cpu_to_node(c->cpu));
> +	rq->mpwqe.mtt_no_align = kzalloc_node(mtt_alloc * wq_sz,
> +					GFP_KERNEL, node);

Or the moving of GFP_KERNEL to the next line here?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux